tests

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tests provides the base test suite for the entire package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuite

type TestSuite struct {
	AppConfig   *config.AppConfig   // App config
	Router      *gin.Engine         // Gin router with handlers
	Services    *config.AppServices // Services
	suite.Suite                     // Extends the suite.Suite package
}

TestSuite is for testing the entire package using real/mocked services

func (*TestSuite) BaseSetupSuite

func (ts *TestSuite) BaseSetupSuite()

BaseSetupSuite runs at the start of the suite

func (*TestSuite) BaseSetupTest

func (ts *TestSuite) BaseSetupTest()

BaseSetupTest runs before each test

func (*TestSuite) BaseTearDownSuite

func (ts *TestSuite) BaseTearDownSuite()

BaseTearDownSuite runs after the suite finishes

func (*TestSuite) BaseTearDownTest

func (ts *TestSuite) BaseTearDownTest()

BaseTearDownTest runs after each test

Jump to

Keyboard shortcuts

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