1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-19 14:57:04 +00:00

auth: Fuzz testing

This commit is contained in:
Alberto Bertogli
2017-04-22 14:52:18 +01:00
parent e543a03feb
commit 9f603da8de
11 changed files with 22 additions and 0 deletions

16
internal/auth/fuzz.go Normal file
View File

@@ -0,0 +1,16 @@
// Fuzz testing for package aliases.
// +build gofuzz
package auth
func Fuzz(data []byte) int {
// user, domain, passwd, err := DecodeResponse(string(data))
interesting := 0
_, _, _, err := DecodeResponse(string(data))
if err == nil {
interesting = 1
}
return interesting
}