Tryout go test fuzzing
This commit is contained in:
@@ -10,6 +10,7 @@ func TestMemoryStore(t *testing.T) {
|
||||
s := &store.MemoryStore{}
|
||||
testLoginAttemptStore(s, t)
|
||||
}
|
||||
|
||||
func TestMemoryStoreWithCache(t *testing.T) {
|
||||
backend := &store.MemoryStore{}
|
||||
s := store.NewCachingStore(backend)
|
||||
@@ -22,3 +23,8 @@ func BenchmarkMemoryStore(b *testing.B) {
|
||||
}
|
||||
benchmarkLoginAttemptStore(setupFunc, b)
|
||||
}
|
||||
|
||||
func FuzzMemoryStore(f *testing.F) {
|
||||
s := &store.MemoryStore{}
|
||||
fuzzLoginAttemptStore(s, f)
|
||||
}
|
||||
|
Reference in New Issue
Block a user