gormtestsupport

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 gormtestsupport provides all the required functions to manage the lifecycle and common operations against our gorm database in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTestSuite

type DBTestSuite struct {
	suite.Suite

	Configuration *config.Registry
	DB            *gorm.DB

	Ctx context.Context
	// contains filtered or unexported fields
}

DBTestSuite is a base for tests using a gorm db

func NewDBTestSuite

func NewDBTestSuite(configFilePath string) DBTestSuite

NewDBTestSuite instanciate a new DBTestSuite

func (*DBTestSuite) SetupSuite

func (s *DBTestSuite) SetupSuite()

SetupSuite implements suite.SetupAllSuite

func (*DBTestSuite) SetupTest

func (s *DBTestSuite) SetupTest()

SetupTest implements suite.SetupTest

func (*DBTestSuite) TearDownSuite

func (s *DBTestSuite) TearDownSuite()

TearDownSuite implements suite.TearDownAllSuite

func (*DBTestSuite) TearDownTest

func (s *DBTestSuite) TearDownTest()

TearDownTest implements suite.TearDownTest

type RemoteTestSuite

type RemoteTestSuite struct {
	suite.Suite

	Configuration *config.Registry
	// contains filtered or unexported fields
}

RemoteTestSuite is a base for tests using a gorm Remote

func NewRemoteTestSuite

func NewRemoteTestSuite(configFilePath string) RemoteTestSuite

NewRemoteTestSuite instanciate a new RemoteTestSuite

func (*RemoteTestSuite) SetupSuite

func (s *RemoteTestSuite) SetupSuite()

SetupSuite implements suite.SetupAllSuite

func (*RemoteTestSuite) TearDownSuite

func (s *RemoteTestSuite) TearDownSuite()

TearDownSuite implements suite.TearDownAllSuite

Directories

Path Synopsis
Package benchmark provides all the required functions to manage the lifecycle and common operations against our gorm database in benchmarks.
Package benchmark provides all the required functions to manage the lifecycle and common operations against our gorm database in benchmarks.

Jump to

Keyboard shortcuts

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