Documentation ¶
Index ¶
- func Login(app *fiber.App, username string) string
- func Register(app *fiber.App, username string) (string, error)
- type MockApp
- type MockTest
- func (b *MockTest) Body(body interface{}) *MockTest
- func (b *MockTest) BuildRequest() *MockTest
- func (b *MockTest) DELETE(route string) *MockTest
- func (b *MockTest) Desc(desc string) *MockTest
- func (b *MockTest) Expected(expectedCode int, expectedMessage string) *MockTest
- func (b *MockTest) GET(route string) *MockTest
- func (b *MockTest) POST(route string) *MockTest
- func (b *MockTest) PUT(route string) *MockTest
- func (b *MockTest) Test(app *fiber.App, t *testing.T) []byte
- func (b *MockTest) WithBearer(bearerToken string) *MockTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockTest ¶
type MockTest struct { Description string ExpectedCode int ExpectedMessage string // contains filtered or unexported fields }
func NewMockTest ¶
func NewMockTest() *MockTest
func (*MockTest) BuildRequest ¶
func (*MockTest) WithBearer ¶
Click to show internal directories.
Click to hide internal directories.