Skip to content

Commit dfe7283

Browse files
author
Pojis
committed
Add notation to newJindoEngineRT in pkg\ddc\jindo\runtime_info_test.go
1 parent 6a7a98f commit dfe7283

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/ddc/jindo/runtime_info_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ import (
2727
"sigs.k8s.io/controller-runtime/pkg/client"
2828
)
2929

30+
// newJindoEngineRT creates a new JindoEngine instance for testing.
31+
// It initializes the engine with a default JindoRuntime and a null logger.
32+
// When withRuntimeInfo is true, it also builds and assigns the runtimeInfo using the
33+
// provided name, namespace, and common.JindoRuntime type. This helper is used in tests to
34+
// simulate different runtime configurations.
3035
func newJindoEngineRT(client client.Client, name string, namespace string, withRuntimeInfo bool) *JindoEngine {
3136
runTimeInfo, _ := base.BuildRuntimeInfo(name, namespace, common.JindoRuntime)
3237
engine := &JindoEngine{

0 commit comments

Comments
 (0)