Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/ddc/alluxio/operations/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down