qstest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package qstest contains shared test code for use by qsess back-ends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteByUserIDTest

func DeleteByUserIDTest(t *testing.T, store *qsess.Store, noZombies bool)

DeleteByUserIdTest is a backend-independent test of DeleteByUserID.

noZombies - report an error if Saving a deleted session succeeds

func ExpirationTest

func ExpirationTest(t *testing.T, store *qsess.Store)

ExpirationTest is a backend-independent session expiration test.

func NoSessDataTest

func NoSessDataTest(t *testing.T, store *qsess.Store)

NoSessDataTest is a backend-independent test of noSessData (i.e. that back-ends don't blow up when given zero-length data).

func SanityTest

func SanityTest(t *testing.T, store *qsess.Store)

SanityTest is a back-end-independent, minimal sanity test. It makes a session, saves it, reads it back, and checks retrieved session data against the original.

func TestNothing

func TestNothing(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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