package jsontesting
import "k8s.io/kube-openapi/pkg/util/jsontesting"
Index ¶
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
Source Files ¶
json_roundtrip.go
- Version
- v0.0.0-20250318190949-c8a335a9a2ff (latest)
- Published
- Mar 18, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 weeks ago –
Tools for package owners.