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

16
types/route_test.go Normal file
View file

@ -0,0 +1,16 @@
package types
import (
"reflect"
"testing"
)
// Test_Route_Unmarshal tests unmarshalling for Route.
// As the unmarshalling is done in-house, this allows us to check that the custom UnmarshalJSON function correctly
//
// This launches both a "correct" and "incorrect" subtest, allowing us to test both cases.
// If we expect no errors but we get one, the test fails
// If we expect an error but we don't get one, the test fails
func Test_Route_Unmarshal(t *testing.T) {
testUnmarshal(t, testData["route"], reflect.TypeOf(Route{}))
}