MCPcopy Create free account
hub / github.com/PascalMinder/geoblock / assertStatusCode

Function assertStatusCode

geoblock_test.go:1381–1387  ·  view source on GitHub ↗
(t *testing.T, req *http.Response, expected int)

Source from the content-addressed store, hash-verified

1379}
1380
1381func assertStatusCode(t *testing.T, req *http.Response, expected int) {
1382 t.Helper()
1383
1384 if received := req.StatusCode; received != expected {
1385 t.Errorf("invalid status code: %d <> %d", expected, received)
1386 }
1387}
1388
1389func assertRequestHeader(t *testing.T, req *http.Request, key string, expected string) {
1390 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected