remove testdataJSON

This commit is contained in:
Georges Chaudy
2024-07-08 12:12:09 +02:00
parent d98da81a42
commit 68a0cf5d81
-8
View File
@@ -2,7 +2,6 @@ package sql
import ( import (
"embed" "embed"
"encoding/json"
"errors" "errors"
"testing" "testing"
"text/template" "text/template"
@@ -41,13 +40,6 @@ func testdata(t *testing.T, filename string) []byte {
return b return b
} }
func testdataJSON(t *testing.T, filename string, dest any) {
t.Helper()
b := testdata(t, filename)
err := json.Unmarshal(b, dest)
require.NoError(t, err)
}
func TestQueries(t *testing.T) { func TestQueries(t *testing.T) {
t.Parallel() t.Parallel()