MCPcopy
hub / github.com/grpc/grpc-go / ExpectErrorN

Function ExpectErrorN

internal/grpctest/tlogger.go:181–183  ·  view source on GitHub ↗

ExpectErrorN declares an error to be expected n times.

(expr string, n int)

Source from the content-addressed store, hash-verified

179
180// ExpectErrorN declares an error to be expected n times.
181func ExpectErrorN(expr string, n int) {
182 expectLogsN(expr, n, errorLog)
183}
184
185// ExpectWarning declares a warning to be expected.
186func ExpectWarning(expr string) {

Callers 4

TestProducerBackoffMethod · 0.92
TestNilStatsHandlerMethod · 0.92
TestInvalidMetadataMethod · 0.92
TestErrorMethod · 0.85

Calls 1

expectLogsNFunction · 0.85

Tested by 4

TestProducerBackoffMethod · 0.74
TestNilStatsHandlerMethod · 0.74
TestInvalidMetadataMethod · 0.74
TestErrorMethod · 0.68