gormtestsupport

package
v0.0.0-...-9b56418 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 5 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.DBTestSuite
	Configuration *configuration.ConfigurationData
	Application   application.Application
}

DBTestSuite is a base for tests using a gorm db

func NewDBTestSuite

func NewDBTestSuite() DBTestSuite

NewDBTestSuite instantiates a new DBTestSuite

func (*DBTestSuite) SetupSuite

func (s *DBTestSuite) SetupSuite()

SetupSuite implements suite.SetupAllSuite

Jump to

Keyboard shortcuts

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