Skip to content
Closed
Changes from 2 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: 9 additions & 1 deletion pkg/ddc/juicefs/runtime_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ import (
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
)

// newJuiceFSEngineRT creates a new instance of JuiceFSEngine
// client: Kubernetes client
// name: Name of the engine
// namespace: Namespace where the engine resides
// withRuntimeInfo: Whether to include runtime information
// unittest: Whether it is for unit testing
// Returns: A new instance of JuiceFSEngine
func newJuiceFSEngineRT(client client.Client, name string, namespace string, withRuntimeInfo bool, unittest bool) *JuiceFSEngine {
runTimeInfo, _ := base.BuildRuntimeInfo(name, namespace, common.JuiceFSRuntime)
engine := &JuiceFSEngine{
Expand All @@ -49,6 +56,7 @@ func newJuiceFSEngineRT(client client.Client, name string, namespace string, wit
return engine
}


func TestJuiceFSEngine_getRuntimeInfo(t *testing.T) {
runtimeInputs := []*datav1alpha1.JuiceFSRuntime{
{
Expand Down Expand Up @@ -169,4 +177,4 @@ func TestJuiceFSEngine_getRuntimeInfo(t *testing.T) {
t.Errorf(" want %t, got %t", testCase.isErr, isErr)
}
}
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep a return line after the method TestJuiceFSEngine_getRuntimeInfo as beflore.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waloc123 Please add a return line in the end of file: [pkg/ddc/juicefs/runtime_info_test.go]