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

Function assertMocksExpectations

backend/pkg/httpserver/server_test.go:1264–1273  ·  view source on GitHub ↗
(t *testing.T, expectedCallCount, actualCallCount int, methodName string,
	mockCacher *MockRawBytesDataCacher)

Source from the content-addressed store, hash-verified

1262 "Content-Type": []string{"application/json"},
1263 },
1264 Body: io.NopCloser(strings.NewReader(body)),
1265 }
1266}
1267
1268func assertStatusCode(t *testing.T, actual, expected int) {
1269 if actual != expected {
1270 t.Errorf("expected status code %d. received %d", expected, actual)
1271 }
1272}
1273
1274func assertHeaders(t *testing.T, actual, expected http.Header) {
1275 if !reflect.DeepEqual(actual, expected) {
1276 t.Errorf("expected headers %+v. received %+v", expected, actual)

Calls 1

AssertExpectationsMethod · 0.80

Tested by

no test coverage detected