test

package
v0.0.0-...-0d7d7e8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlx

type Sqlx struct {
	Mock sqlxmock.Sqlmock
	DB   *sqlx.DB
}

func (*Sqlx) CleanTestSqlx

func (s *Sqlx) CleanTestSqlx()

CleanTestSqlx Clean the test suite

func (*Sqlx) CreateFullTestSqlx

func (s *Sqlx) CreateFullTestSqlx(t *testing.T)

CreateFullTestSqlx Create a full test suite Please clean test suite after use (defer CleanTestSqlx())

func (*Sqlx) MockQuery

func (s *Sqlx) MockQuery(rows *sqlxmock.Rows) (*sqlx.Rows, error)

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

func (*TestSuite) CleanTestSuite

func (ts *TestSuite) CleanTestSuite(t *testing.T)

CleanTestSuite Clean a test suite

func (*TestSuite) CreateConfigTranslationsFullTestSuite

func (ts *TestSuite) CreateConfigTranslationsFullTestSuite(t *testing.T) string

CreateConfigTranslationsFullTestSuite Create a full test suite with a config/translations directory

func (*TestSuite) CreateFullTestSuite

func (ts *TestSuite) CreateFullTestSuite(t *testing.T) (directoryPath string)

CreateFullTestSuite Create a full test suite Please clean test suite after use (defer ts.CleanTestSuite())

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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