MCPcopy Create free account
hub / github.com/apache/fory / assertExampleUnionEqual

Function assertExampleUnionEqual

integration_tests/idl_tests/go/idl_roundtrip_test.go:669–674  ·  view source on GitHub ↗
(t *testing.T, expected, actual example.ExampleMessageUnion)

Source from the content-addressed store, hash-verified

667}
668
669func assertExampleUnionEqual(t *testing.T, expected, actual example.ExampleMessageUnion) {
670 t.Helper()
671 if !reflect.DeepEqual(expected, actual) {
672 t.Fatalf("example union mismatch: %#v != %#v", expected, actual)
673 }
674}
675
676func runLocalAnyRoundTrip(t *testing.T, f *fory.Fory, holder anyexample.AnyHolder) {
677 data, err := f.Serialize(&holder)

Callers 2

runLocalExampleRoundTripFunction · 0.85
runFileExampleRoundTripFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected