snapshot of https://github.com/golang-migrate/migrate.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
20
source/iofs/iofs_test.go
Normal file
20
source/iofs/iofs_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//go:build go1.16
|
||||
|
||||
package iofs_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/golang-migrate/migrate/v4/source/iofs"
|
||||
st "github.com/golang-migrate/migrate/v4/source/testing"
|
||||
)
|
||||
|
||||
func Test(t *testing.T) {
|
||||
// reuse the embed.FS set in example_test.go
|
||||
d, err := iofs.New(fs, "testdata/migrations")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
st.Test(t, d)
|
||||
}
|
||||
Reference in New Issue
Block a user