MCPcopy
hub / github.com/grafana/dskit / errorContainsString

Function errorContainsString

crypto/tls/test/tls_integration_test.go:619–624  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

617}
618
619func errorContainsString(str string) func(*testing.T, error) {
620 return func(t *testing.T, err error) {
621 require.Error(t, err)
622 assert.Contains(t, err.Error(), str)
623 }
624}
625
626type grpcConfig struct {
627 MaxRecvMsgSize int `yaml:"max_recv_msg_size"`

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected