func Test(t *testing.T, d database.Driver, migration []byte) {
	if migration == nil {
		t.Fatal("test must provide migration reader")
	}
	TestNilVersion(t, d)  
	TestLockAndUnlock(t, d)
	TestRun(t, d, bytes.NewReader(migration))
	TestSetVersion(t, d)  
	TestDrop(t, d)
}
Test runs tests against database implementations.
package testing
import (
	"bytes"
	"errors"
	"fmt"
	"io"
	"testing"
	"time"
	"github.com/golang-migrate/migrate/v4/database"
)