diff --git a/pkg/ddc/alluxio/utils_test.go b/pkg/ddc/alluxio/utils_test.go index 06483082640..4c37c082696 100644 --- a/pkg/ddc/alluxio/utils_test.go +++ b/pkg/ddc/alluxio/utils_test.go @@ -293,6 +293,16 @@ Worker Name Last Heartbeat Storage MEM return r, "", nil } +// TestGetDataSetFileNum tests the getDataSetFileNum method of AlluxioEngine. +// It verifies the behavior by mocking container command execution and comparing +// actual outputs against expected values. Test cases include both success and +// error scenarios. +// +// Parameters: +// - t *testing.T: Testing framework handle for assertions and logging. +// +// Returns: +// - None (test failures are reported via t.Errorf or t.Fatal). func TestGetDataSetFileNum(t *testing.T) { type fields struct { runtime *datav1alpha1.AlluxioRuntime