Documentation ¶
Index ¶
- Variables
- func NewTaskDoc(usrID string) *myjson.Document
- func NewUserDoc() *myjson.Document
- func Seed(ctx context.Context, db myjson.Database, accounts int, usersPerAccount int, ...) error
- func SeedUsers(ctx context.Context, db myjson.Database, perAccount int, tasksPerUser int) error
- func Test(t *testing.T, cfg TestConfig, fn TestFunc) func(*testing.T)
- func TestDB(fn func(ctx context.Context, db myjson.Database), opts ...myjson.DBOpt) error
- type TestConfig
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed testdata/scripts.js GlobalScript string //go:embed testdata/task.yaml TaskSchema string //go:embed testdata/user.yaml UserSchema string //go:embed testdata/account.yaml AccountSchema string AllCollections = []string{AccountSchema, UserSchema, TaskSchema} )
Functions ¶
func NewTaskDoc ¶
func NewUserDoc ¶
Types ¶
type TestConfig ¶ added in v0.3.9
Click to show internal directories.
Click to hide internal directories.