MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / assertStatusCode

Function assertStatusCode

backend/pkg/httpserver/server_test.go:1198–1202  ·  view source on GitHub ↗
(t *testing.T, actual, expected int)

Source from the content-addressed store, hash-verified

1196 if !reflect.DeepEqual(resp, m.publishSearchConfigurationChangedCfg.expectedResp) {
1197 m.t.Errorf("unexpected response %+v", resp)
1198 }
1199 if userID != m.publishSearchConfigurationChangedCfg.expectedUserID {
1200 m.t.Errorf("unexpected user id %s", userID)
1201 }
1202 if isCreation != m.publishSearchConfigurationChangedCfg.expectedIsCreation {
1203 m.t.Errorf("unexpected is creation %t", isCreation)
1204 }
1205

Callers 1

assertTestServerRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected