Skip to content

Commit f241a2c

Browse files
authored
Add comments/notation to TestAlluxioFileUtils_exec in pkg/ddc/alluxio/operations/base_test.go. (#6027)
Signed-off-by: insider193 <2906734930@qq.com>
1 parent 94f3b6c commit f241a2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/ddc/alluxio/operations/base_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,10 @@ func TestAlluxioFIleUtils_ReportCapacity(t *testing.T) {
650650
}
651651
}
652652

653+
// TestAlluxioFileUtils_exec tests the private exec method of AlluxioFileUtils.
654+
// It mocks the exec implementation to verify that an error is returned when
655+
// command execution fails and that no error is returned when execution succeeds.
656+
// The test also covers calls with both disabled and enabled verbose output.
653657
func TestAlluxioFileUtils_exec(t *testing.T) {
654658
ExecWithoutTimeoutCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) {
655659
return "Type: COUNTER, Value: 6,367,897", "", nil

0 commit comments

Comments
 (0)