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

Function TestNilConfig

tempodb/backend/s3/s3_test.go:374–380  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

372}
373
374func TestNilConfig(t *testing.T) {
375 _, _, _, err := New(nil)
376 require.Error(t, err)
377
378 _, _, _, err = NewNoConfirm(nil)
379 require.Error(t, err)
380}
381
382func fakeServer(t *testing.T, returnIn time.Duration, counter *int32) *httptest.Server {
383 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NewNoConfirmFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected