Skip to content

Commit e108c51

Browse files
RiceCakeInJarRiceCakeInJar
andauthored
Add comments to TestGetDataSetFileNum in pkg\ddc\alluxio\utils_test.go (#4935)
Signed-off-by: RiceCakeInJar <221220144@smail.nju.edu.com> Co-authored-by: RiceCakeInJar <221220144@smail.nju.edu.com>
1 parent 5748575 commit e108c51

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/ddc/alluxio/utils_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,16 @@ Worker Name Last Heartbeat Storage MEM
323323
return r, "", nil
324324
}
325325

326+
// TestGetDataSetFileNum tests the getDataSetFileNum method of AlluxioEngine.
327+
// It verifies the behavior by mocking container command execution and comparing
328+
// actual outputs against expected values. Test cases include both success and
329+
// error scenarios.
330+
//
331+
// Parameters:
332+
// - t *testing.T: Testing framework handle for assertions and logging.
333+
//
334+
// Returns:
335+
// - None (test failures are reported via t.Errorf or t.Fatal).
326336
func TestGetDataSetFileNum(t *testing.T) {
327337
type fields struct {
328338
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)