Skip to content

Commit 007cc06

Browse files
authored
This PR is to add comments to TestAlluxioEngine_GetDeprecatedCommonLabelname in pkg… (#4648)
* Add notation to TestAlluxioEngine_GetDeprecatedCommonLabelname in pkg\ddc\alluxio\deprecated_label_test.go Signed-off-by: zhuchaowen <zhuchaowen20@gmail.com> * Add notation to TestAlluxioEngine_GetDeprecatedCommonLabelname in pkg\ddc\alluxio\deprecated_label_test.go Signed-off-by: zhuchaowen <zhuchaowen20@gmail.com> * Add comments to TestAlluxioEngine_GetDeprecatedCommonLabelname in pkg\ddc\alluxio\deprecated_label_test.go Signed-off-by: zhuchaowen <zhuchaowen20@gmail.com> --------- Signed-off-by: zhuchaowen <zhuchaowen20@gmail.com>
1 parent c669277 commit 007cc06

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

pkg/ddc/alluxio/deprecated_label_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ func getTestAlluxioEngine(client client.Client, name string, namespace string) *
4444
return engine
4545
}
4646

47+
// TestAlluxioEngine_GetDeprecatedCommonLabelname tests the GetCommonLabelName function,
48+
// to ensure that it generates the correct common label name under different test cases.
49+
//
50+
// Parameters for the GetCommonLabelName function:
51+
// - useDeprecated (bool): Whether to use the deprecated label format.
52+
// - namespace (string): The namespace to which the resource belongs.
53+
// - name (string): The name of the resource.
54+
// - suffix (string): The suffix of the label, which is not used in this test case.
55+
//
56+
// This test checks various combinations of `namespace` and `name`,
57+
// and validates whether the generated label name matches the expected output, ensuring the function logic is correct.
4758
func TestAlluxioEngine_GetDeprecatedCommonLabelname(t *testing.T) {
4859
testCases := []struct {
4960
name string

0 commit comments

Comments
 (0)