mirror of
https://github.com/hanzoai/migrate.git
synced 2026-09-30 22:55:10 +00:00
21 lines
344 B
Go
21 lines
344 B
Go
//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)
|
|
}
|