From 8790d7cf5baa803d7b53fde116febc09e8fb5e7b Mon Sep 17 00:00:00 2001 From: hongxiuliu Date: Sun, 10 May 2026 15:10:24 +0800 Subject: [PATCH] Add Notation to TestAlluxioFileUtils_LoadMetaData in base_test.go Signed-off-by: hongxiuliu --- pkg/ddc/alluxio/operations/base_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/ddc/alluxio/operations/base_test.go b/pkg/ddc/alluxio/operations/base_test.go index 28382e9f271..81719d88ce4 100644 --- a/pkg/ddc/alluxio/operations/base_test.go +++ b/pkg/ddc/alluxio/operations/base_test.go @@ -178,6 +178,9 @@ func TestAlluxioFileUtils_LoadMetadataWithoutTimeout(t *testing.T) { } } +// TestAlluxioFileUtils_LoadMetaData tests the AlluxioFileUtils.LoadMetaData method +// for both failure and success cases by mocking the internal exec command. +// It accepts a *testing.T and has no return value. func TestAlluxioFileUtils_LoadMetaData(t *testing.T) { ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) { return "Alluxio cluster summary", "", nil