Which function do you want to add comments to?
mockAlluxioEngineForTests in fluid/pkg/ddc/alluxio/mock_utils.go
What comments do you want to add?
mockAlluxioEngineForTests builds a minimal AlluxioEngine instance for unit tests.
// It validates that the given dataset and runtime are a matching pair (same namespace/name,
// and runtime is owned by the dataset) and panics otherwise.
// The returned engine has a basic runtime info, a fake logger and a fake event recorder.
// Client and Helper are intentionally left nil so that test cases can inject them when needed.
Which function do you want to add comments to?
mockAlluxioEngineForTests in fluid/pkg/ddc/alluxio/mock_utils.go
What comments do you want to add?
mockAlluxioEngineForTests builds a minimal AlluxioEngine instance for unit tests.
// It validates that the given dataset and runtime are a matching pair (same namespace/name,
// and runtime is owned by the dataset) and panics otherwise.
// The returned engine has a basic runtime info, a fake logger and a fake event recorder.
// Client and Helper are intentionally left nil so that test cases can inject them when needed.