Skip to content

Commit e7dee0c

Browse files
committed
Add comments to Test_parseFSInfoFromConfigMap in pkg/ddc/juicefs/datasetinfo_parser_test.go
Signed-off-by: 0112Han <15829229836@163.com>
1 parent 1178175 commit e7dee0c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

pkg/ddc/juicefs/datasetinfo_parser_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,16 @@ func TestGetFSInfoFromConfigMap(t *testing.T) {
168168
}
169169
}
170170
}
171-
171+
// Test_parseFSInfoFromConfigMap is a unit test function for the parseFSInfoFromConfigMap method.
172+
// It validates whether the function correctly extracts and parses dataset information
173+
// from a given Kubernetes ConfigMap.
174+
//
175+
// Steps:
176+
// 1. Define test cases with different ConfigMap data inputs.
177+
// 2. Execute parseFSInfoFromConfigMap using the provided test cases.
178+
// 3. Verify the returned metadata information against expected values.
179+
// 4. Check for expected errors in erroneous cases.
180+
// 5. Use assertions to ensure the function behaves as intended.
172181
func Test_parseFSInfoFromConfigMap(t *testing.T) {
173182
type args struct {
174183
configMap *v1.ConfigMap

0 commit comments

Comments
 (0)