Include types from gonavitia/navitia

This commit is contained in:
nemunaire 2023-07-14 12:23:33 +02:00
commit 24b1102761
157 changed files with 26062 additions and 116 deletions

21
types/container_fuzz.go Normal file
View file

@ -0,0 +1,21 @@
// +build gofuzz
package types
func FuzzContainer(data []byte) int {
c := &Container{}
// Let's unmarshal, this is not our job so "bleh"
err := c.UnmarshalJSON(data)
if err != nil {
return 0
}
// Let's check it !
err = c.Check()
if err != nil {
return 0
}
return 1
}