Documentation
¶
Overview ¶
Package testutil provides shared fixtures for Sforza tests.
Index ¶
Constants ¶
View Source
const AdminSub = "admin-user-sub"
AdminSub is the bootstrap administrator subject used in tests.
Variables ¶
View Source
var Drivers = []string{"sqlite", "json"}
Drivers are the storage backends that can be exercised without external services.
View Source
var Tenants = []string{"tenant-a", "tenant-b"}
Tenants are the tenant IDs configured by NewStores.
Functions ¶
func NewStoresDriver ¶
NewStoresDriver opens stores backed by the given driver in a temp dir.
func StorageConfig ¶
StorageConfig returns an SQLite storage configuration rooted in a temp dir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.