package
0.0.0-20240309073012-30139a74a392
Repository: https://github.com/garaekz/go-rest-api.git
Documentation: pkg.go.dev
# Functions
DB returns the database connection for testing purpose.
Endpoint tests an HTTP endpoint using the given APITestCase spec.
MockRouter creates a routing.Router for testing APIs.
MockRoutingContext creates a routing.Conext for testing handlers.
ResetTables truncates all data in the specified tables.
# Structs
APITestCase represents the data needed to describe an API test case.