MCPcopy Index your code
hub / github.com/cortexproject/cortex / verifyErrorString

Function verifyErrorString

pkg/ingester/ingester_test.go:2740–2745  ·  view source on GitHub ↗
(tb testing.TB, err error, expectedErr string)

Source from the content-addressed store, hash-verified

2738}
2739
2740func verifyErrorString(tb testing.TB, err error, expectedErr string) {
2741 if err == nil || !strings.Contains(err.Error(), expectedErr) {
2742 tb.Helper()
2743 tb.Fatalf("unexpected error. expected: %s actual: %v", expectedErr, err)
2744 }
2745}
2746
2747func Benchmark_Ingester_PushOnError(b *testing.B) {
2748 var (

Callers 1

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected