remove testdataJSON
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user