MCPcopy
hub / github.com/protocolbuffers/protobuf-go / check

Method check

internal/encoding/json/decode_test.go:78–87  ·  view source on GitHub ↗
(tok json.Token)

Source from the content-addressed store, hash-verified

76}
77
78func (x Bool) check(tok json.Token) string {
79 if got := tok.Kind(); got != json.Bool {
80 return fmt.Sprintf("Token.Kind(): got %v, want %v", got, json.Bool)
81 }
82
83 if got := tok.Bool(); got != x.val {
84 return fmt.Sprintf("Token.Bool(): got %v, want %v", got, x.val)
85 }
86 return ""
87}
88
89type Str struct {
90 val string

Callers

nothing calls this directly

Calls 2

KindMethod · 0.65
BoolMethod · 0.45

Tested by

no test coverage detected