Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestServer ¶
type TestServer struct { Server *httptest.Server Config *TestServerConfig CallCount CallCount // contains filtered or unexported fields }
func NewTestServer ¶
func NewTestServer(t *testing.T, config *TestServerConfig) *TestServer
func (*TestServer) Handle ¶
func (s *TestServer) Handle(t *testing.T, method, path string, handler TestServerHandler)
func (*TestServer) HandleAuthenticated ¶
func (s *TestServer) HandleAuthenticated(t *testing.T, method, path string, handler TestServerHandler)
type TestServerConfig ¶
type TestServerConfig struct { Audience string ClientID string ClientSecret string GrantType string AccessToken string Scopes []string }
func DefaultTestServerConfig ¶
func DefaultTestServerConfig() *TestServerConfig
Click to show internal directories.
Click to hide internal directories.