(tok json.Token)
| 91 | } |
| 92 | |
| 93 | func (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 | |
| 104 | type F64 struct { |
| 105 | val float64 |
nothing calls this directly
no test coverage detected