Merge pull request #34533 from yuexiao-wang/fix-commends
Automatic merge from submit-queue Update function name for public function in commend **What this PR does / why we need it**: Update function name for public function in commend and fix some typos in log information. Signed-off-by: yuexiao-wang wang.yuexiao@zte.com.cn
This commit is contained in:
@@ -100,7 +100,7 @@ func TestExtractFieldPathAsString(t *testing.T) {
|
||||
Namespace: "object-namespace",
|
||||
},
|
||||
},
|
||||
expectedMessageFragment: "Unsupported fieldPath",
|
||||
expectedMessageFragment: "unsupported fieldPath",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -109,13 +109,13 @@ func TestExtractFieldPathAsString(t *testing.T) {
|
||||
if err != nil {
|
||||
if tc.expectedMessageFragment != "" {
|
||||
if !strings.Contains(err.Error(), tc.expectedMessageFragment) {
|
||||
t.Errorf("%v: Unexpected error message: %q, expected to contain %q", tc.name, err, tc.expectedMessageFragment)
|
||||
t.Errorf("%v: unexpected error message: %q, expected to contain %q", tc.name, err, tc.expectedMessageFragment)
|
||||
}
|
||||
} else {
|
||||
t.Errorf("%v: unexpected error: %v", tc.name, err)
|
||||
}
|
||||
} else if e := tc.expectedValue; e != "" && e != actual {
|
||||
t.Errorf("%v: Unexpected result; got %q, expected %q", tc.name, actual, e)
|
||||
t.Errorf("%v: unexpected result; got %q, expected %q", tc.name, actual, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user