cauthtest

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package cauthtest provides utilities to test cauth

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewUserSession

func CreateNewUserSession(t *testing.T, server *httptest.Server) *cauth.SessionResult

CreateNewUserSession creates a new user using the given router and returns the session created by it.

func NewHandler

func NewHandler(t *testing.T) http.Handler

NewHandler instantiates and returns a http.Handler with auth router and middlewares suited for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL