summaryrefslogtreecommitdiff
path: root/compat/json/borrowed_decode_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2022-08-14 20:52:06 -0600
committerLuke Shumaker <lukeshu@datawire.io>2022-08-15 00:28:47 -0600
commit58b7df5e9f1c0d4858528f326440599620a8c1fb (patch)
treedcbe104b42ff22debe4adf767ff1fe69785aa394 /compat/json/borrowed_decode_test.go
parent25d0b8365020ef4051dffd4f7704328402914613 (diff)
Create a compat/json compatibility library
Diffstat (limited to 'compat/json/borrowed_decode_test.go')
-rw-r--r--compat/json/borrowed_decode_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/json/borrowed_decode_test.go b/compat/json/borrowed_decode_test.go
index ac8594b..306f85e 100644
--- a/compat/json/borrowed_decode_test.go
+++ b/compat/json/borrowed_decode_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package lowmemjson // MODIFIED
+package json
import (
"bytes"
@@ -19,6 +19,8 @@ import (
"strings"
"testing"
"time"
+
+ "git.lukeshu.com/go/lowmemjson" // MODIFIED
)
type T struct {
@@ -1093,9 +1095,7 @@ func equalError(a, b error) bool {
func TestUnmarshal(t *testing.T) {
t.Skip() // TODO
for i, tt := range unmarshalTests {
- scan := &ReEncoder{
- Out: io.Discard,
- }
+ scan := lowmemjson.ReEncoder{Out: io.Discard} // MODIFIED
in := []byte(tt.in)
if _, err := scan.Write(in); err != nil {
if !equalError(err, tt.err) {