benchmark

package
v0.0.0-...-ef83997 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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.Registry
	DB            *gorm.DB
	Ctx           context.Context
	// 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) SetupBenchmark

func (s *DBBenchSuite) SetupBenchmark()

func (*DBBenchSuite) SetupSuite

func (s *DBBenchSuite) SetupSuite()

SetupSuite implements suite.SetupAllSuite

func (*DBBenchSuite) TearDownBenchmark

func (s *DBBenchSuite) TearDownBenchmark()

func (*DBBenchSuite) TearDownSuite

func (s *DBBenchSuite) TearDownSuite()

TearDownSuite implements suite.TearDownAllSuite

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL