Tryout go test fuzzing

This commit is contained in:
2022-09-01 03:59:18 +02:00
parent fce78d234d
commit 38ff8949b9
3 changed files with 40 additions and 0 deletions

View File

@@ -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)
}