tester

package
v0.0.0-...-03efb0c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(app *fiber.App, username string) string

func Register

func Register(app *fiber.App, username string) (string, error)

Types

type MockApp

type MockApp struct {
}

func NewMockApp

func NewMockApp() *MockApp

func (*MockApp) Setup

func (mc *MockApp) Setup(envPath string) *fiber.App

type MockTest

type MockTest struct {
	Description string

	ExpectedCode    int
	ExpectedMessage string
	// contains filtered or unexported fields
}

func NewMockTest

func NewMockTest() *MockTest

func (*MockTest) Body

func (b *MockTest) Body(body interface{}) *MockTest

func (*MockTest) BuildRequest

func (b *MockTest) BuildRequest() *MockTest

func (*MockTest) DELETE

func (b *MockTest) DELETE(route string) *MockTest

func (*MockTest) Desc

func (b *MockTest) Desc(desc string) *MockTest

func (*MockTest) Expected

func (b *MockTest) Expected(
	expectedCode int,
	expectedMessage string,
) *MockTest

func (*MockTest) GET

func (b *MockTest) GET(route string) *MockTest

func (*MockTest) POST

func (b *MockTest) POST(route string) *MockTest

func (*MockTest) PUT

func (b *MockTest) PUT(route string) *MockTest

func (*MockTest) Test

func (b *MockTest) Test(app *fiber.App, t *testing.T) []byte

func (*MockTest) WithBearer

func (b *MockTest) WithBearer(bearerToken string) *MockTest

Jump to

Keyboard shortcuts

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