testsuite

package
v3.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TimeZone = "Canada/Eastern"

Variables

View Source
var TimeLocation, _ = time.LoadLocation(TimeZone)

Functions

This section is empty.

Types

type GenericTestSuite

type GenericTestSuite struct {
	suite.Suite

	Helper
}

func (*GenericTestSuite) AfterTest

func (s *GenericTestSuite) AfterTest(suiteName, testName string)

func (*GenericTestSuite) BeforeTest

func (s *GenericTestSuite) BeforeTest(suiteName, testName string)

func (*GenericTestSuite) TestComparisonOperators

func (s *GenericTestSuite) TestComparisonOperators()

func (*GenericTestSuite) TestDatesAndUnicode

func (s *GenericTestSuite) TestDatesAndUnicode()

func (*GenericTestSuite) TestExplicitAndDefaultMapping

func (s *GenericTestSuite) TestExplicitAndDefaultMapping()

func (*GenericTestSuite) TestFibonacci

func (s *GenericTestSuite) TestFibonacci()

func (*GenericTestSuite) TestOddEven

func (s *GenericTestSuite) TestOddEven()

type Helper

type Helper interface {
	SQLBuilder() sqlbuilder.Database
	Session() db.Database

	Adapter() string

	TearUp() error
	TearDown() error
}

type SQLTestSuite

type SQLTestSuite struct {
	suite.Suite

	Helper
}

func (*SQLTestSuite) AfterTest

func (s *SQLTestSuite) AfterTest(suiteName, testName string)

func (*SQLTestSuite) BeforeTest

func (s *SQLTestSuite) BeforeTest(suiteName, testName string)

func (*SQLTestSuite) TestBatchInsert

func (s *SQLTestSuite) TestBatchInsert()

func (*SQLTestSuite) TestBatchInsertNoColumns

func (s *SQLTestSuite) TestBatchInsertNoColumns()

func (*SQLTestSuite) TestBatchInsertReturningKeys

func (s *SQLTestSuite) TestBatchInsertReturningKeys()

func (*SQLTestSuite) TestCompositeKeys

func (s *SQLTestSuite) TestCompositeKeys()

func (*SQLTestSuite) TestCustomQueryLogger

func (s *SQLTestSuite) TestCustomQueryLogger()

func (*SQLTestSuite) TestCustomType

func (s *SQLTestSuite) TestCustomType()

func (*SQLTestSuite) TestDataTypes

func (s *SQLTestSuite) TestDataTypes()

func (*SQLTestSuite) TestExhaustConnectionPool

func (s *SQLTestSuite) TestExhaustConnectionPool()

func (*SQLTestSuite) TestExpectCursorError

func (s *SQLTestSuite) TestExpectCursorError()

func (*SQLTestSuite) TestFunction

func (s *SQLTestSuite) TestFunction()

func (*SQLTestSuite) TestGetAllResults

func (s *SQLTestSuite) TestGetAllResults()

func (*SQLTestSuite) TestGetOneResult

func (s *SQLTestSuite) TestGetOneResult()

func (*SQLTestSuite) TestGetResultsOneByOne

func (s *SQLTestSuite) TestGetResultsOneByOne()

func (*SQLTestSuite) TestGetWithOffset

func (s *SQLTestSuite) TestGetWithOffset()

func (*SQLTestSuite) TestGroup

func (s *SQLTestSuite) TestGroup()

func (*SQLTestSuite) TestInlineStructs

func (s *SQLTestSuite) TestInlineStructs()

func (*SQLTestSuite) TestInsertAndDelete

func (s *SQLTestSuite) TestInsertAndDelete()

func (*SQLTestSuite) TestInsertDefault

func (s *SQLTestSuite) TestInsertDefault()

func (*SQLTestSuite) TestInsertIntoArtistsTable

func (s *SQLTestSuite) TestInsertIntoArtistsTable()

func (*SQLTestSuite) TestInsertReturning

func (s *SQLTestSuite) TestInsertReturning()

func (*SQLTestSuite) TestInsertReturningWithinTransaction

func (s *SQLTestSuite) TestInsertReturningWithinTransaction()

func (*SQLTestSuite) TestNullableFields

func (s *SQLTestSuite) TestNullableFields()

func (*SQLTestSuite) TestPaginator

func (s *SQLTestSuite) TestPaginator()

func (*SQLTestSuite) TestPreparedStatementsCache

func (s *SQLTestSuite) TestPreparedStatementsCache()

func (*SQLTestSuite) TestQueryNonExistentCollection

func (s *SQLTestSuite) TestQueryNonExistentCollection()

func (*SQLTestSuite) TestSQLBuilder

func (s *SQLTestSuite) TestSQLBuilder()

func (*SQLTestSuite) TestTransactionsAndRollback

func (s *SQLTestSuite) TestTransactionsAndRollback()

Attempts to test database transactions.

func (*SQLTestSuite) TestTruncateAllCollections

func (s *SQLTestSuite) TestTruncateAllCollections()

func (*SQLTestSuite) TestUpdate

func (s *SQLTestSuite) TestUpdate()

func (*SQLTestSuite) TestUpdateWithNullColumn

func (s *SQLTestSuite) TestUpdateWithNullColumn()

func (*SQLTestSuite) Test_Issue565

func (s *SQLTestSuite) Test_Issue565()

type Suite

type Suite struct {
	suite.Suite

	Helper
}

func (*Suite) AfterTest

func (s *Suite) AfterTest(suiteName, testName string)

func (*Suite) BeforeTest

func (s *Suite) BeforeTest(suiteName, testName string)

Jump to

Keyboard shortcuts

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