Include types from gonavitia/navitia
This commit is contained in:
parent
82769f923e
commit
24b1102761
157 changed files with 26062 additions and 116 deletions
16
types/route_test.go
Normal file
16
types/route_test.go
Normal 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{}))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue