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

Function newRefOverrideTestFory

go/fory/ref_override_test.go:54–60  ·  view source on GitHub ↗
(t *testing.T, container any)

Source from the content-addressed store, hash-verified

52}
53
54func newRefOverrideTestFory(t *testing.T, container any) *Fory {
55 t.Helper()
56 f := New(WithXlang(true), WithCompatible(false), WithTrackRef(true))
57 require.NoError(t, f.RegisterStruct(refOverrideTestElement{}, 700))
58 require.NoError(t, f.RegisterStruct(container, 701))
59 return f
60}
61
62func TestCollectionReadFollowsRemoteRefMetadata(t *testing.T) {
63 shared := &refOverrideTestElement{ID: 7, Name: "shared_element"}

Calls 5

WithXlangFunction · 0.85
WithCompatibleFunction · 0.85
WithTrackRefFunction · 0.85
NewFunction · 0.70
RegisterStructMethod · 0.45

Tested by

no test coverage detected