Skip to content

Add Notation to newEFCEngineREP in fluid/pkg/ddc/efc/replicas_test.go #5734

@Q7856

Description

@Q7856

Which function do you want to add comments to?
newEFCEngineREP in fluid/pkg/ddc/efc/replicas_test.go
What comments do you want to add?

// newEFCEngineREP creates and initializes an EFCEngine instance for testing purposes.
//
// This function builds a runtime info object based on the given name and namespace,
// then constructs an EFCEngine with a fake Kubernetes client, empty runtime object,
// and a null logger. It also initializes the Helper utility for the engine.
//
// It is mainly used in unit tests (e.g., TestSyncReplicas) to simulate
// EFCEngine behavior without interacting with a real Kubernetes cluster.
//
// Parameters:
// client - a Kubernetes client (usually a fake client for testing)
// name - the name of the EFCRuntime
// namespace - the namespace of the EFCRuntime
//
// Returns:
// *EFCEngine - a fully initialized EFCEngine instance for testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions