1 //go:build go1.16 2 // +build go1.16 3 4 package iofs_test 5 6 import ( 7 "testing" 8 9 "github.com/golang-migrate/migrate/v4/source/iofs" 10 st "github.com/golang-migrate/migrate/v4/source/testing" 11 ) 12 13 func Test(t *testing.T) { 14 // reuse the embed.FS set in example_test.go 15 d, err := iofs.New(fs, "testdata/migrations") 16 if err != nil { 17 t.Fatal(err) 18 } 19 20 st.Test(t, d) 21 } 22