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

Function ExpectWarning

internal/grpctest/tlogger.go:186–188  ·  view source on GitHub ↗

ExpectWarning declares a warning to be expected.

(expr string)

Source from the content-addressed store, hash-verified

184
185// ExpectWarning declares a warning to be expected.
186func ExpectWarning(expr string) {
187 expectLogsN(expr, 1, warningLog)
188}
189
190func expectLogsN(expr string, n int, logType logType) {
191 tLogr.mu.Lock()

Calls 1

expectLogsNFunction · 0.85