File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
172181func Test_parseFSInfoFromConfigMap (t * testing.T ) {
173182 type args struct {
174183 configMap * v1.ConfigMap
You can’t perform that action at this time.
0 commit comments