From 1bb6c12f3d8420073b0bbfe35b985062073012b6 Mon Sep 17 00:00:00 2001 From: Song Zhaoxu Date: Wed, 3 Jun 2026 09:58:22 +0800 Subject: [PATCH] Add comments to TestAlluxioFileUtils_QueryMetaDataInfoIntoFile in pkg/ddc/alluxio/operations/base_test.go. Signed-off-by: Song Zhaoxu --- 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 c0fbe591b69..c4e620a7881 100644 --- a/pkg/ddc/alluxio/operations/base_test.go +++ b/pkg/ddc/alluxio/operations/base_test.go @@ -218,6 +218,9 @@ func TestAlluxioFileUtils_LoadMetaData(t *testing.T) { } } +// TestAlluxioFileUtils_QueryMetaDataInfoIntoFile tests the QueryMetaDataInfoIntoFile method. +// It uses gomonkey to mock the internal exec method, verifying that an error is returned when exec fails +// and that no error occurs when exec succeeds. The test covers all defined KeyOfMetaDataFile types. func TestAlluxioFileUtils_QueryMetaDataInfoIntoFile(t *testing.T) { ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) { return "Alluxio cluster summary", "", nil