Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTestDB ¶
InitTestDB initializes a test database with the canonical schema
func InitTestDBNoFTS ¶
InitTestDBNoFTS initializes a test database with the schema minus FTS5 features
func InitTestDBWithDB ¶
InitTestDBWithDB initializes a test database with the canonical schema using provided DB connection
func StripFTSFromSchema ¶
StripFTSFromSchema returns the schema without FTS5-specific statements
Types ¶
type TestFixture ¶
func Setup ¶
func Setup(t *testing.T) *TestFixture
func (*TestFixture) Cleanup ¶
func (f *TestFixture) Cleanup()
func (*TestFixture) CreateDummyFile ¶
func (f *TestFixture) CreateDummyFile(name string) string
func (*TestFixture) CreateFileTree ¶
func (f *TestFixture) CreateFileTree(tree map[string]any)
func (*TestFixture) GetDB ¶
func (f *TestFixture) GetDB() *sql.DB
Click to show internal directories.
Click to hide internal directories.