package
0.15.1
Repository: https://github.com/cisco-open/go-lanai.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EnableDBRecordMode Force enables DB recording mode.
IsRecording returns true if copyist is in recording mode.
PrepareData is a convenient function that returns a test.SetupFunc that executes given DataSetupStep in provided order Note: PrepareData accumulate all changes applied to context.
PrepareDataWithScope is similar to PrepareData, it applies given DataSetupScope before executing all DataSetupStep.
SetupDropTables returns a DataSetupStep that truncate given tables in single DROP TABLE IF EXISTS.
SetupOnce returns a DataSetupStep that run given DataSetupSteps within the given sync.Once.
SetupTruncateTables returns a DataSetupStep that truncate given tables in the provided order.
SetupUsingModelSeedFile returns a DataSetupStep that load provided yaml file and parse it directly into provided model and save them.
SetupUsingSQLFile returns a DataSetupStep that execute the provided sql file in given FS.
SetupUsingSQLQueries returns a DataSetupStep that execute the provided sql queries.
SetupWithGormScopes returns a DataSetupScope that applies given gorm scopes.
WithDBPlayback enables DB SQL playback capabilities supported by `copyist` This mode requires apptest.Bootstrap to work, and should not be used together with WithNoopMocks Each top-level test should have corresponding recorded SQL responses in `testdata` folder, or the test will fail.
WithNoopMocks create a noop tx.TxManager and a noop gorm.DB This mode requires apptest.Bootstrap to work, and should not be used together with WithDBPlayback Note: in this mode, gorm.DB's DryRun and SkipDefaultTransaction are enabled.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author