MCPcopy
hub / github.com/grafana/tempo / testBadRequest

Function testBadRequest

modules/frontend/search_sharder_test.go:948–954  ·  view source on GitHub ↗
(t *testing.T, resp *http.Response, err error, expectedBody string)

Source from the content-addressed store, hash-verified

946}
947
948func testBadRequest(t *testing.T, resp *http.Response, err error, expectedBody string) {
949 assert.Equal(t, http.StatusBadRequest, resp.StatusCode)
950 assert.Nil(t, err)
951 buff, err := io.ReadAll(resp.Body)
952 assert.NoError(t, err)
953 assert.Equal(t, expectedBody, string(buff))
954}
955
956func TestAdjustLimit(t *testing.T) {
957 l, err := adjustLimit(0, 10, 0)

Callers 1

Calls 2

ReadAllMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected