tests

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericTestCaptcha_Improve_Cover

func GenericTestCaptcha_Improve_Cover[S verified.Storage](t *testing.T, store S)

func GenericTestCaptcha_In_Quota

func GenericTestCaptcha_In_Quota[S verified.Storage](t *testing.T, store S)

func GenericTestCaptcha_OneTime

func GenericTestCaptcha_OneTime[S verified.Storage](t *testing.T, store S)

func GenericTestCaptcha_Onetime_Timeout

func GenericTestCaptcha_Onetime_Timeout[S verified.Storage](t *testing.T, store S)

TODO: success in redis, but failed in miniredis

func GenericTestCaptcha_Over_Quota

func GenericTestCaptcha_Over_Quota[S verified.Storage](t *testing.T, store S)

func GenericTestCaptcha_RedisUnavailable

func GenericTestCaptcha_RedisUnavailable[S verified.Storage](t *testing.T, store S)

func GenericTestCaptcha_Unsupported_Driver

func GenericTestCaptcha_Unsupported_Driver[S verified.Storage](t *testing.T, store S)

func GenericTestReflux_Improve_Cover

func GenericTestReflux_Improve_Cover[S verified.Storage](t *testing.T, store S)

func GenericTestReflux_In_Quota

func GenericTestReflux_In_Quota[S verified.Storage](t *testing.T, store S)

func GenericTestReflux_OneTime_Timeout

func GenericTestReflux_OneTime_Timeout[S verified.Storage](t *testing.T, store S)

TODO: success in redis, but failed in miniredis

func GenericTestReflux_One_Time

func GenericTestReflux_One_Time[S verified.Storage](t *testing.T, store S)

func GenericTestReflux_Over_Quota

func GenericTestReflux_Over_Quota[S verified.Storage](t *testing.T, store S)

func GenericTestReflux_RedisUnavailable

func GenericTestReflux_RedisUnavailable[S verified.Storage](t *testing.T, store S)

Types

type TestVerifiedCaptchaDriver

type TestVerifiedCaptchaDriver struct{}

func (TestVerifiedCaptchaDriver) GenerateQuestionAnswer

func (t TestVerifiedCaptchaDriver) GenerateQuestionAnswer() (*verified.QuestionAnswer, error)

func (TestVerifiedCaptchaDriver) Name

type TestVerifiedCaptchaProvider

type TestVerifiedCaptchaProvider struct{}

func (TestVerifiedCaptchaProvider) AcquireDriver

type TestVerifiedRefluxProvider

type TestVerifiedRefluxProvider struct{}

func (TestVerifiedRefluxProvider) GenerateUniqueId

func (t TestVerifiedRefluxProvider) GenerateUniqueId() string

func (TestVerifiedRefluxProvider) Name

Jump to

Keyboard shortcuts

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