testsuite

package
v0.0.0-...-5fc39c8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestCtx

func NewTestCtx(uid, oid int, client *ent.Client) context.Context

Types

type BaseSuite

type BaseSuite struct {
	suite.Suite
	Cnf             *conf.AppConfiguration
	DSN, DriverName string
	Client          *ent.Client
	CacheClient     *ent.Client
	Redis           *miniredis.Miniredis
	App             *woocoo.App
	AuthDbClient    *casbinent.Client
}

func (*BaseSuite) BearToken

func (o *BaseSuite) BearToken() string

func (*BaseSuite) NewTestCtx

func (o *BaseSuite) NewTestCtx(uid, oid int) context.Context

func (*BaseSuite) Setup

func (o *BaseSuite) Setup() error

Jump to

Keyboard shortcuts

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