Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonCompare ¶
Types ¶
type MarshalerUnmarshaler ¶
type MarshalerUnmarshaler interface {
json.Unmarshaler
json.Marshaler
}
type RoundTripTestCase ¶
type RoundTripTestCase struct {
Name string
JSON string
Object json.Marshaler
// An error that is expected when `Object` is marshalled to json
// If `Object` does not exist, then it is inferred from the provided JSON
ExpectedMarshalError string
// An error that is expected when the provided JSON is unmarshalled
// If `JSON` does not exist then this it is inferred from the provided `Object`
ExpectedUnmarshalError string
}
func (RoundTripTestCase) RoundTripTest ¶
func (t RoundTripTestCase) RoundTripTest(example MarshalerUnmarshaler) error
Click to show internal directories.
Click to hide internal directories.