e2e

package
v0.0.0-...-d1a39b7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateValidAccessToken

func GenerateValidAccessToken(t *testing.T, testApp *TestApp, userRole string) (*domainUser.User, *token.TokenPairs)

Types

type TestApp

type TestApp struct {
	Server       *httptest.Server
	Router       *chi.Mux
	Config       *config.Config
	Poll         *pgxpool.Pool
	TokenService *jwt.JWTService
	Cleanup      func()
}

func NewTestApp

func NewTestApp(t *testing.T) *TestApp

func (*TestApp) Close

func (app *TestApp) Close() error

func (*TestApp) URL

func (app *TestApp) URL() string

Jump to

Keyboard shortcuts

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