package
1.13.3
Repository: https://github.com/18f/cg-dashboard.git
Documentation: pkg.go.dev

# Functions

CreateExternalServer creates a test server that should reply with the given parameters assuming that the incoming request matches what we want.
CreateRouterWithMockSession will create a settings with the appropriate envVars and load the mock session with the session data.
NewTestRequest is a helper function that creates a sample request with the given input parameters.
PrepareExternalServerCall creates all the things that we will use when we send the request to the external server.
VerifyExternalCallResponse will verify the test response with what was expected by the test.

# Variables

InvalidTokenData is a dataset which represents an invalid token.
MockCompleteEnvVars is just a commonly used env vars object that contains non-empty values for all the fields of the EnvVars struct.
ValidTokenData is a dataset which represents a valid token.

# Structs

BasicConsoleUnitTest is Basic Unit Test Information.
BasicProxyTest contains information for what our test 'external' server should do when the proxy methods contact it.
BasicSecureTest contains info like BasicConsoleUnitTest.
MockSessionStore represents an easily fillable session store that implements gorilla's session store interface.