Skip to content

Commit 1e6b4c7

Browse files
author
Pojis
committed
Add comments to newJindoEngineRT in pkg/ddc/jindo/runtime_info_test.go
1 parent 6a7a98f commit 1e6b4c7

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
@@ -26,6 +26,11 @@ import (
2626
"k8s.io/apimachinery/pkg/runtime"
2727
"sigs.k8s.io/controller-runtime/pkg/client"
2828
)
29+
// newJindoEngineRT creates a new JindoEngine instance for testing.
30+
// It initializes the engine with a default JindoRuntime and a null logger.
31+
// When withRuntimeInfo is true, it also builds and assigns the runtimeInfo using the
32+
// provided name, namespace, and common.JindoRuntime type. This helper is used in tests to
33+
// simulate different runtime configurations.
2934

3035
func newJindoEngineRT(client client.Client, name string, namespace string, withRuntimeInfo bool) *JindoEngine {
3136
runTimeInfo, _ := base.BuildRuntimeInfo(name, namespace, common.JindoRuntime)

0 commit comments

Comments
 (0)