chore: fix some function names in comment

Signed-off-by: zhuhaicity <zhuhai@52it.net>
This commit is contained in:
zhuhaicity 2025-01-12 14:57:51 +08:00 committed by Ming Deng
parent a21efb5613
commit 5da7cabb59
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func TestStartMock(t *testing.T) {
assert.Equal(t, expectedResp, resp) assert.Equal(t, expectedResp, resp)
} }
// TestStartMock_Isolation Test StartMock that // TestStartMockIsolation Test StartMock that
// mock only work for this request // mock only work for this request
func TestStartMockIsolation(t *testing.T) { func TestStartMockIsolation(t *testing.T) {
// httplib.defaultSetting.FilterChains = []httplib.FilterChain{mockFilter.FilterChain} // httplib.defaultSetting.FilterChains = []httplib.FilterChain{mockFilter.FilterChain}

View File

@ -27,7 +27,7 @@ var (
sliceOfStrings = reflect.TypeOf([]string(nil)) sliceOfStrings = reflect.TypeOf([]string(nil))
) )
// ParseForm will parse form values to struct via tag. // parseFormToStruct will parse form values to struct via tag.
// Support for anonymous struct. // Support for anonymous struct.
func parseFormToStruct(form url.Values, objT reflect.Type, objV reflect.Value) error { func parseFormToStruct(form url.Values, objT reflect.Type, objV reflect.Value) error {
for i := 0; i < objT.NumField(); i++ { for i := 0; i < objT.NumField(); i++ {