Skip to content

Add comments to mockAlluxioEngineForTests in fluid/pkg/ddc/alluxio/mock_utils.go #6017

Description

@mini-star720

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions