/
githubmirror
/
fizz
Обзор
Документация
Войти
/
githubmirror
/
fizz
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
testdata/e2e/sqlite3_test.go
26 строк
561 B
Yonghwan SO
moved e2e test suite into testdata so it does not affect the dependency
09 июл 2022, 15:32
09 июл 2022, 15:32
58e9dd4
Код
Авторство
О чём код?
package e2e_test import ( "io/ioutil" "github.com/gobuffalo/pop/v6" "github.com/stretchr/testify/suite" ) type SQLiteSuite struct { suite.Suite } func (s *SQLiteSuite) Test_SQLite_MigrationSteps() { r := s.Require() td, err := ioutil.TempDir("", "pop-e2e-sqlite") r.NoError(err) c, err := pop.NewConnection(&pop.ConnectionDetails{URL: "sqlite3://" + td + "db.sql?mode=rwc&_fk=true"}) r.NoError(err) r.NoError(c.Open(), "%s", c.URL()) r.NoError(c.RawQuery("SELECT 1").Exec(), "%s", c.URL()) run(&s.Suite, c, runTestData(&s.Suite, c, false)) }