Documentation
¶
Index ¶
- Variables
- func IsSnapshotExists(t testing.TB) bool
- type Config
- type Snap
- func NewDB(t testing.TB, url string) (*sql.DB, *Snap)
- func NewDBWithConfig(t testing.TB, url string, cfg Config) (*sql.DB, *Snap)
- func NewSnap(t testing.TB, postgreURL string) *Snap
- func NewSnapWithConfig(t testing.TB, url string, cfg Config) *Snap
- func NewSnapWithForceWrite(t testing.TB, url string, forceWrite bool) *Snap
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyScript = errors.New("script is empty")
Functions ¶
func IsSnapshotExists ¶
Types ¶
type Snap ¶
type Snap struct {
// contains filtered or unexported fields
}
func NewDBWithConfig ¶
NewDBWithConfig will create *sql.DB to be used in the test but it will ignore the snapshot file
func NewSnapWithConfig ¶
Make it private first, because we still design the api first
func NewSnapWithForceWrite ¶
Deprecated NewSnapWithForceWrite function
func (*Snap) AddFinishFunc ¶
AddFinishFunc will add function that will be called when Finish() is called. It used by docker to remove container
Source Files
¶
Click to show internal directories.
Click to hide internal directories.