Skip to content

Commit 1d11a7d

Browse files
committed
Add comments/notation to TestTransformResourcesForWorkerNoValue in pkg\ddc\alluxio\transform_resources_test.go.
Signed-off-by: XiaoJuOvo <2803699394@qq.com>
1 parent 7577a48 commit 1d11a7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/ddc/alluxio/transform_resources_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ func mockAlluxioRuntimeForMaster(res corev1.ResourceRequirements) *datav1alpha1.
166166
return runtime
167167

168168
}
169-
169+
// TestTransformResourcesForWorkerNoValue 测试当资源未设置值时,TransformResourcesForWorker 函数的行为是否符合预期。
170+
// 该测试主要验证在输入资源缺少 value 字段的情况下,函数能否正确处理并返回预期结果。
170171
func TestTransformResourcesForWorkerNoValue(t *testing.T) {
171172
var tests = []struct {
172173
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)