Skip to content

Commit c839a1d

Browse files
authored
This PR is to add comments to getTestJindoEngineNode in pkg/ddc/jindo/node_test.go. (#4735)
* Add comments to getTestJindoEngineNode in pkg/ddc/jindo/node_test.go. Signed-off-by: Wdh <2994175810@qq.com> * Add comments to getTestJindoEngineNode in pkg/ddc/jindo/node_test.go. Signed-off-by: Wdh <2994175810@qq.com> * Add comments to getTestJindoEngineNode in pkg/ddc/jindo/node_test.go. Signed-off-by: Wdh <2994175810@qq.com> * Add comments to getTestJindoEngineNode in pkg/ddc/jindo/node_test.go. Signed-off-by: Wdh <2994175810@qq.com> --------- Signed-off-by: Wdh <2994175810@qq.com>
1 parent ee9b6fb commit c839a1d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/ddc/jindo/node_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ import (
3636
"k8s.io/utils/ptr"
3737
)
3838

39+
// getTestJindoEngineNode creates and returns a JindoEngine instance for testing.
40+
// It determines whether to initialize runtime-related information based on the `withRunTime` parameter.
41+
// Parameters:
42+
// - client: Kubernetes client used to interact with API resources.
43+
// - name: Name of the JindoEngine instance.
44+
// - namespace: Namespace where the JindoEngine instance is located.
45+
// - withRunTime: Whether to initialize runtime and runtimeInfo.
46+
//
47+
// Returns:
48+
// - *JindoEngine: The generated JindoEngine instance.。
3949
func getTestJindoEngineNode(client client.Client, name string, namespace string, withRunTime bool) *JindoEngine {
4050
engine := &JindoEngine{
4151
runtime: nil,

0 commit comments

Comments
 (0)