tests

package
v0.0.0-...-b2e13bb Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestPeriodFailureLimit

func TestPeriodFailureLimit[S limit.PeriodFailureStorage](t *testing.T, store S, opts ...limit.PeriodLimitOption)

func TestPeriodFailureLimit_Check

func TestPeriodFailureLimit_Check[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_CheckWithAlign

func TestPeriodFailureLimit_CheckWithAlign[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_Check_In_Limit_Failure_Time_Then_Success

func TestPeriodFailureLimit_Check_In_Limit_Failure_Time_Then_Success[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_Check_Over_Limit_Failure_Time_Then_Success_Always_OverFailureTimeError

func TestPeriodFailureLimit_Check_Over_Limit_Failure_Time_Then_Success_Always_OverFailureTimeError[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_Del

func TestPeriodFailureLimit_Del[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_RedisUnavailable

func TestPeriodFailureLimit_RedisUnavailable[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodFailureLimit_SetQuotaFull

func TestPeriodFailureLimit_SetQuotaFull[S limit.PeriodFailureStorage](t *testing.T, store S)

func TestPeriodLimit_Del

func TestPeriodLimit_Del[S limit.PeriodStorage](t *testing.T, store S)

func TestPeriodLimit_QuotaFull

func TestPeriodLimit_QuotaFull[S limit.PeriodStorage](t *testing.T, store S)

func TestPeriodLimit_RedisUnavailable

func TestPeriodLimit_RedisUnavailable[S limit.PeriodStorage](t *testing.T, store S)

func TestPeriodLimit_SetQuotaFull

func TestPeriodLimit_SetQuotaFull[S limit.PeriodStorage](t *testing.T, store S)

func TestPeriodLimit_Take

func TestPeriodLimit_Take[S limit.PeriodStorage](t *testing.T, store S)

func TestPeriodLimit_TakeWithAlign

func TestPeriodLimit_TakeWithAlign[S limit.PeriodStorage](t *testing.T, store S)

Types

This section is empty.

Jump to

Keyboard shortcuts

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