benchmark

package
v0.0.0-...-284eadf Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 7 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.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

Jump to

Keyboard shortcuts

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