package
0.0.0-20230605045656-66b15f905e3e
Repository: https://github.com/jimmc/jraceman.git
Documentation: pkg.go.dev
# Functions
AddTestUser adds a test user to the request, with the specified permissions.
CreateCrudHandler create an http handler for our crud calls.
CreateDebugHandlerForRepos creates an http handler for our debug calls using the specified repos.
CreateQueryHandler create an http handler for our query calls.
CreateReportHandler create an http handler for our report calls.
No description provided by the author
NewCrudTester returns a new Tester for testing our crud calls.
NewDebugTester returns a new Tester for testing our debug calls.
NewQueryTester returns a new Tester for testing our query calls.
NewReportTester returns a new Tester for testing our report calls.
NewTester creates a new instance of a Tester that will use the specified function to create an http.Handler.
No description provided by the author
Returns the database repo and a cleanup function to close the repo.
Returns the database repo and a cleanup function to close the repo.
No description provided by the author
Gets a new request.
RunCrudTest creates a new Tester and runs a test for a crud call.
RunDebugTest creates a new Tester and runs a test for a debug call.
Run initializes the tester, runs a test, and closes it, calling Fatalf on any error.
RunQueryTest creates a new Tester and runs a test for a query call.
RunReportTest creates a new Tester and runs a test for a report call.
ServeCrudRequest create our http handler and processes the given request.