package
0.0.0-20200917143433-b1b50a11e74b
Repository: https://github.com/al-un/alun-api.git
Documentation: pkg.go.dev
# README
Test utils
Various test utilities
# Functions
Assert fails the test if the condition is false.
CheckHTTPStatus makes a test fails if the response recorder status code is not the expected code.
Equals fails the test if exp is not equal to act.
NewAPITester build an APITester from a core.API reference.
Ok fails the test if an err is not nil.
# Constants
CallFromHelperMethod to user when Asset() is used from a helper method.
CallFromTestFile to use when Assert() is used in a test file.
# Structs
APITester saves a router and run tests against the saved router.
APITestInfo gathers info for a single test run.