tests

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

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success = "\u2713"
	Failed  = "\u2717"
)

Variables

This section is empty.

Functions

func IntPointer

func IntPointer(i int) *int

func NewUnit

func NewUnit(t *testing.T, dbc DBContainer) (*zap.SugaredLogger, *sqlx.DB, func())

func StringPointer

func StringPointer(s string) *string

Types

type DBContainer

type DBContainer struct {
	Image string
	Port  string
	Args  []string
}

type Test

type Test struct {
	DB   *sqlx.DB
	Log  *zap.SugaredLogger
	Auth *auth.Auth

	Teardown func()
	// contains filtered or unexported fields
}

func NewIntegration

func NewIntegration(t *testing.T, dbc DBContainer) *Test

func (*Test) Token

func (test *Test) Token(email, pass string) string

Jump to

Keyboard shortcuts

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