Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/ddc/jindo/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ import (
"k8s.io/utils/ptr"
)

// getTestJindoEngineNode creates and returns a JindoEngine instance for testing.
// It determines whether to initialize runtime-related information based on the `withRunTime` parameter.
// Parameters:
// - client: Kubernetes client used to interact with API resources.
// - name: Name of the JindoEngine instance.
// - namespace: Namespace where the JindoEngine instance is located.
// - withRunTime: Whether to initialize runtime and runtimeInfo.
//
// Returns:
// - *JindoEngine: The generated JindoEngine instance.。
func getTestJindoEngineNode(client client.Client, name string, namespace string, withRunTime bool) *JindoEngine {
engine := &JindoEngine{
runtime: nil,
Expand Down
Loading