db.v3: upper.io/db.v3/testsuite Index | Files

package testsuite

import "upper.io/db.v3/testsuite"

Index

Package Files

generic_suite.go sql_suite.go suite.go

Constants

const TimeZone = "Canada/Eastern"

Variables

var TimeLocation, _ = time.LoadLocation(TimeZone)

type GenericTestSuite Uses

type GenericTestSuite struct {
    suite.Suite

    Helper
}

func (*GenericTestSuite) AfterTest Uses

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

func (*GenericTestSuite) BeforeTest Uses

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

func (*GenericTestSuite) TestComparisonOperators Uses

func (s *GenericTestSuite) TestComparisonOperators()

func (*GenericTestSuite) TestDatesAndUnicode Uses

func (s *GenericTestSuite) TestDatesAndUnicode()

func (*GenericTestSuite) TestExplicitAndDefaultMapping Uses

func (s *GenericTestSuite) TestExplicitAndDefaultMapping()

func (*GenericTestSuite) TestFibonacci Uses

func (s *GenericTestSuite) TestFibonacci()

func (*GenericTestSuite) TestOddEven Uses

func (s *GenericTestSuite) TestOddEven()

type Helper Uses

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

    Adapter() string

    TearUp() error
    TearDown() error
}

type SQLTestSuite Uses

type SQLTestSuite struct {
    suite.Suite

    Helper
}

func (*SQLTestSuite) AfterTest Uses

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

func (*SQLTestSuite) BeforeTest Uses

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

func (*SQLTestSuite) TestBatchInsert Uses

func (s *SQLTestSuite) TestBatchInsert()

func (*SQLTestSuite) TestBatchInsertNoColumns Uses

func (s *SQLTestSuite) TestBatchInsertNoColumns()

func (*SQLTestSuite) TestBatchInsertReturningKeys Uses

func (s *SQLTestSuite) TestBatchInsertReturningKeys()

func (*SQLTestSuite) TestCompositeKeys Uses

func (s *SQLTestSuite) TestCompositeKeys()

func (*SQLTestSuite) TestCustomQueryLogger Uses

func (s *SQLTestSuite) TestCustomQueryLogger()

func (*SQLTestSuite) TestCustomType Uses

func (s *SQLTestSuite) TestCustomType()

func (*SQLTestSuite) TestDataTypes Uses

func (s *SQLTestSuite) TestDataTypes()

func (*SQLTestSuite) TestExhaustConnectionPool Uses

func (s *SQLTestSuite) TestExhaustConnectionPool()

func (*SQLTestSuite) TestExpectCursorError Uses

func (s *SQLTestSuite) TestExpectCursorError()

func (*SQLTestSuite) TestFunction Uses

func (s *SQLTestSuite) TestFunction()

func (*SQLTestSuite) TestGetAllResults Uses

func (s *SQLTestSuite) TestGetAllResults()

func (*SQLTestSuite) TestGetOneResult Uses

func (s *SQLTestSuite) TestGetOneResult()

func (*SQLTestSuite) TestGetResultsOneByOne Uses

func (s *SQLTestSuite) TestGetResultsOneByOne()

func (*SQLTestSuite) TestGetWithOffset Uses

func (s *SQLTestSuite) TestGetWithOffset()

func (*SQLTestSuite) TestGroup Uses

func (s *SQLTestSuite) TestGroup()

func (*SQLTestSuite) TestInlineStructs Uses

func (s *SQLTestSuite) TestInlineStructs()

func (*SQLTestSuite) TestInsertAndDelete Uses

func (s *SQLTestSuite) TestInsertAndDelete()

func (*SQLTestSuite) TestInsertDefault Uses

func (s *SQLTestSuite) TestInsertDefault()

func (*SQLTestSuite) TestInsertIntoArtistsTable Uses

func (s *SQLTestSuite) TestInsertIntoArtistsTable()

func (*SQLTestSuite) TestInsertReturning Uses

func (s *SQLTestSuite) TestInsertReturning()

func (*SQLTestSuite) TestInsertReturningWithinTransaction Uses

func (s *SQLTestSuite) TestInsertReturningWithinTransaction()

func (*SQLTestSuite) TestNullableFields Uses

func (s *SQLTestSuite) TestNullableFields()

func (*SQLTestSuite) TestPaginator Uses

func (s *SQLTestSuite) TestPaginator()

func (*SQLTestSuite) TestPreparedStatementsCache Uses

func (s *SQLTestSuite) TestPreparedStatementsCache()

func (*SQLTestSuite) TestQueryNonExistentCollection Uses

func (s *SQLTestSuite) TestQueryNonExistentCollection()

func (*SQLTestSuite) TestSQLBuilder Uses

func (s *SQLTestSuite) TestSQLBuilder()

func (*SQLTestSuite) TestTransactionsAndRollback Uses

func (s *SQLTestSuite) TestTransactionsAndRollback()

Attempts to test database transactions.

func (*SQLTestSuite) TestTruncateAllCollections Uses

func (s *SQLTestSuite) TestTruncateAllCollections()

func (*SQLTestSuite) TestUpdate Uses

func (s *SQLTestSuite) TestUpdate()

func (*SQLTestSuite) TestUpdateWithNullColumn Uses

func (s *SQLTestSuite) TestUpdateWithNullColumn()

type Suite Uses

type Suite struct {
    suite.Suite

    Helper
}

func (*Suite) AfterTest Uses

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

func (*Suite) BeforeTest Uses

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

Package testsuite imports 12 packages (graph). Updated 2019-09-04. Refresh now. Tools for package owners.