tests

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericTestName

func GenericTestName[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_Concurrency_MaxSendPerDay

func GenericTestSendCode_Concurrency_MaxSendPerDay[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_Concurrency_ResendTooFrequently

func GenericTestSendCode_Concurrency_ResendTooFrequently[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_Err_Failure

func GenericTestSendCode_Err_Failure[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_MaxSendPerDay

func GenericTestSendCode_MaxSendPerDay[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_RedisUnavailable

func GenericTestSendCode_RedisUnavailable[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_ResendTooFrequently

func GenericTestSendCode_ResendTooFrequently[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestSendCode_Success

func GenericTestSendCode_Success[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestVerifyCode_CodeExpired

func GenericTestVerifyCode_CodeExpired[S limit_verified.Storage](t *testing.T, mr *miniredis.Miniredis, store S)

func GenericTestVerifyCode_CodeMaxError

func GenericTestVerifyCode_CodeMaxError[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestVerifyCode_CodeRequired

func GenericTestVerifyCode_CodeRequired[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestVerifyCode_Concurrency_CodeMaxError

func GenericTestVerifyCode_Concurrency_CodeMaxError[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTestVerifyCode_Success

func GenericTestVerifyCode_Success[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTest_INCR_DECR

func GenericTest_INCR_DECR[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

func GenericTest_INCR_MaxSendPerDay

func GenericTest_INCR_MaxSendPerDay[S limit_verified.Storage](t *testing.T, _ *miniredis.Miniredis, store S)

Types

type TestErrProvider

type TestErrProvider struct{}

func (TestErrProvider) Name

func (t TestErrProvider) Name() string

func (TestErrProvider) SendCode

type TestProvider

type TestProvider struct{}

func (TestProvider) Name

func (t TestProvider) Name() string

func (TestProvider) SendCode

Jump to

Keyboard shortcuts

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