remove testdataJSON

This commit is contained in:
Georges Chaudy 2024-07-08 12:12:09 +02:00
parent d98da81a42
commit 68a0cf5d81
No known key found for this signature in database
GPG Key ID: 0EE887FFCA1DB6EF

View File

@ -2,7 +2,6 @@ package sql
import (
"embed"
"encoding/json"
"errors"
"testing"
"text/template"
@ -41,13 +40,6 @@ func testdata(t *testing.T, filename string) []byte {
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) {
t.Parallel()