From 48ca9982d8adbc402b750ce43a8a2a03270a98d1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 10 Feb 2023 15:10:46 -0700 Subject: compat/json: Get more of the tests compiling --- compat/json/compat_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compat/json/compat_test.go') 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") +} -- cgit v1.2.3-2-g168b