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

Method check

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

Source from the content-addressed store, hash-verified

91}
92
93func (x Str) check(tok json.Token) string {
94 if got := tok.Kind(); got != json.String {
95 return fmt.Sprintf("Token.Kind(): got %v, want %v", got, json.String)
96 }
97
98 if got := tok.ParsedString(); got != x.val {
99 return fmt.Sprintf("Token.ParsedString(): got %v, want %v", got, x.val)
100 }
101 return ""
102}
103
104type F64 struct {
105 val float64

Callers

nothing calls this directly

Calls 2

ParsedStringMethod · 0.80
KindMethod · 0.65

Tested by

no test coverage detected