testutil

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

User is a minimal auth-capable user type for framework tests.

func Stub

func Stub(id uint64) *User

Stub returns a test user with the given ID.

func StubWithEmail

func StubWithEmail(email string, approve pkgModels.ApproveStatus) *User

StubWithEmail returns a test user with email and approval status.

func (*User) NewWithID

func (u *User) NewWithID(id uint64) user.Model

func (*User) RBACResourceName

func (u *User) RBACResourceName() string

func (*User) TableName

func (u *User) TableName() string

Jump to

Keyboard shortcuts

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