summaryrefslogtreecommitdiff
path: root/compat/json/compat_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 15:10:46 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 21:48:22 -0700
commit48ca9982d8adbc402b750ce43a8a2a03270a98d1 (patch)
treed552f9eafd3615b015f82c22a46345e1758cb71a /compat/json/compat_test.go
parentc4ae41eba5e1c86c9a1edcaf80ef10cc3fe62eb1 (diff)
compat/json: Get more of the tests compiling
Diffstat (limited to 'compat/json/compat_test.go')
-rw-r--r--compat/json/compat_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/json/compat_test.go b/compat/json/compat_test.go
index 203594f..9e4e1cf 100644
--- a/compat/json/compat_test.go
+++ b/compat/json/compat_test.go
@@ -6,6 +6,7 @@ package json
import (
"bytes"
+ "encoding/json"
"io"
"git.lukeshu.com/go/lowmemjson"
@@ -63,3 +64,12 @@ func (es *encodeState) string(str string, _ bool) {
func (es *encodeState) stringBytes(str []byte, _ bool) {
jsontest.EncodeStringFromBytes(&es.Buffer, str)
}
+
+type (
+ Token = json.Token
+ Delim = json.Delim
+)
+
+func (dec *Decoder) Token() (Token, error) {
+ panic("not implemented")
+}