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

Function makeSprintfErr

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

Source from the content-addressed store, hash-verified

35const logFuncStr = "called-func"
36
37func makeSprintfErr(t *testing.T) func(format string, a ...any) string {
38 return func(string, ...any) string {
39 t.Errorf("got: sprintf called on io.Discard logger, want: expensive sprintf to not be called for io.Discard")
40 return ""
41 }
42}
43
44func makeSprintErr(t *testing.T) func(a ...any) string {
45 return func(...any) string {

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected