github.com/matcornic/migrate@v3.3.2-0.20180717234201-feea45c20506+incompatible/database/stub/stub_test.go (about)

     1  package stub
     2  
     3  import (
     4  	"testing"
     5  
     6  	dt "github.com/golang-migrate/migrate/database/testing"
     7  )
     8  
     9  func Test(t *testing.T) {
    10  	s := &Stub{}
    11  	d, err := s.Open("")
    12  	if err != nil {
    13  		t.Fatal(err)
    14  	}
    15  	dt.Test(t, d, []byte("/* foobar migration */"))
    16  }