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

Function makeSprintErr

grpclog/internal/loggerv2_test.go:44–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func makeSprintErr(t *testing.T) func(a ...any) string {
45 return func(...any) string {
46 t.Errorf("got: sprint called on io.Discard logger, want: expensive sprint to not be called for io.Discard")
47 return ""
48 }
49}
50
51// checkLogContainsFuncStr checks that the logger buffer logBuf contains
52// logFuncStr.

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected