Skip to content

Commit 275d56b

Browse files
authored
Add Notation to TestAlluxioFileUtils_LoadMetaData in base_test.go (#5848)
Signed-off-by: hongxiuliu <m13844331316@163.com>
1 parent 719f033 commit 275d56b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ddc/alluxio/operations/base_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ func TestAlluxioFileUtils_LoadMetadataWithoutTimeout(t *testing.T) {
178178
}
179179
}
180180

181+
// TestAlluxioFileUtils_LoadMetaData tests the AlluxioFileUtils.LoadMetaData method
182+
// for both failure and success cases by mocking the internal exec command.
183+
// It accepts a *testing.T and has no return value.
181184
func TestAlluxioFileUtils_LoadMetaData(t *testing.T) {
182185
ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) {
183186
return "Alluxio cluster summary", "", nil

0 commit comments

Comments
 (0)