From 7d68471e176dc5b8a55fac813888313a8f0d0a9a Mon Sep 17 00:00:00 2001 From: 231220120a <746105051@qq.com> Date: Wed, 17 Jun 2026 20:26:10 +0800 Subject: [PATCH] Add comments to TestAlluxioFileUtils_ReportSummary in pkg/ddc/alluxio/operations/base_test.go --- pkg/ddc/alluxio/operations/base_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/alluxio/operations/base_test.go b/pkg/ddc/alluxio/operations/base_test.go index dc1b3c3f69b..00b2ffcd2c8 100644 --- a/pkg/ddc/alluxio/operations/base_test.go +++ b/pkg/ddc/alluxio/operations/base_test.go @@ -141,7 +141,9 @@ func TestAlluxioFileUtils_Du(t *testing.T) { } } -func TestAlluxioFileUtils_ReportSummary(t *testing.T) { + // TestAlluxioFileUtils_ReportSummary tests the AlluxioFileUtils.ReportSummary method + // for both failure and success cases by mocking the internal exec command. + func TestAlluxioFileUtils_ReportSummary(t *testing.T) { ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) { return "Alluxio cluster summary", "", nil }