Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestEnabled ¶
func TestEnabled() bool
TestEnabled determines if integration testing is enabled by checking env variable flag 'ENABLE_INTEGRATION_TEST'. Default is false.
Types ¶
type TestSuite ¶
type TestSuite interface { // StartUp - initializes the external component, returns the connection if database StartUp() interface{} // CleanUp - clear test data or shutdown the external component CleanUp() // Create a record in db Create(ctx context.Context, v interface{}) error // Find a record in db using primary key ID FindByID(ctx context.Context, entity interface{}, id uint) error }
TestSuite interface for integration testing of external components such as database or webservice
Click to show internal directories.
Click to hide internal directories.