Skip to content

Commit ea036ab

Browse files
XiaojuOvocheyang
andauthored
This PR is to add comments to TestTransformResourcesForWorkerNoValue in pkg\ddc\alluxio\transform_resources_test.go (#5141)
* Add comments/notation to TestTransformResourcesForWorkerNoValue in pkg\ddc\alluxio\transform_resources_test.go. Signed-off-by: XiaoJuOvo <2803699394@qq.com> * Fix go fmt issue Signed-off-by: cheyang <cheyang@163.com> * Fix go fmt issue Signed-off-by: cheyang <cheyang@163.com> --------- Signed-off-by: XiaoJuOvo <2803699394@qq.com> Signed-off-by: cheyang <cheyang@163.com> Co-authored-by: cheyang <cheyang@163.com>
1 parent 8962f7f commit ea036ab

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/ddc/alluxio/transform_resources_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ func mockAlluxioRuntimeForMaster(res corev1.ResourceRequirements) *datav1alpha1.
167167

168168
}
169169

170+
// TestTransformResourcesForWorkerNoValue tests whether the TransformResourcesForWorker
171+
// function behaves as expected when resources have no set values.
172+
//
173+
// This test primarily verifies if the function can correctly handle
174+
// and return the expected result when the input resources lack the value field.
170175
func TestTransformResourcesForWorkerNoValue(t *testing.T) {
171176
var tests = []struct {
172177
runtime *datav1alpha1.AlluxioRuntime

pkg/ddc/juicefs/create_volume_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import (
4444
//
4545
// Parameters:
4646
// - t *testing.T: A testing.T object used to manage test state and support test log output.
47+
//
4748
// Returns:
4849
// - No return value. If the test fails, errors will be reported via t.Errorf.
4950
func TestJuiceFSEngine_CreateVolume(t *testing.T) {

0 commit comments

Comments
 (0)