Documentation ¶
Overview ¶
Package benchmark provides all the required functions to manage the lifecycle and common operations against our gorm database in benchmarks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBBenchSuite ¶
type DBBenchSuite struct { test.Suite Configuration *config.ConfigurationData DB *gorm.DB // contains filtered or unexported fields }
DBBenchSuite is a base for tests using a gorm db
func NewDBBenchSuite ¶
func NewDBBenchSuite(configFilePath string) DBBenchSuite
NewDBBenchSuite instanciate a new DBBenchSuite
func (*DBBenchSuite) SetupSuite ¶
func (s *DBBenchSuite) SetupSuite()
SetupSuite implements suite.SetupAllSuite
func (*DBBenchSuite) TearDownSuite ¶
func (s *DBBenchSuite) TearDownSuite()
TearDownSuite implements suite.TearDownAllSuite
Click to show internal directories.
Click to hide internal directories.