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

Function TestCompatibleDefaults

go/fory/fory_compatible_test.go:166–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestCompatibleDefaults(t *testing.T) {
167 defaultXlang := NewForyWithOptions(WithXlang(true))
168 defaultNative := NewForyWithOptions(WithXlang(false))
169
170 assert.True(t, defaultXlang.config.Compatible)
171 assert.NotNil(t, defaultXlang.metaContext)
172 assert.True(t, defaultXlang.metaContext.IsScopedMetaShareEnabled())
173 assert.True(t, defaultNative.config.Compatible)
174 assert.NotNil(t, defaultNative.metaContext)
175 assert.True(t, defaultNative.metaContext.IsScopedMetaShareEnabled())
176}
177
178func TestCompatibleModeOverrides(t *testing.T) {
179 compatibleXlang := NewForyWithOptions(WithXlang(true), WithCompatible(true))

Callers

nothing calls this directly

Calls 3

NewForyWithOptionsFunction · 0.85
WithXlangFunction · 0.85

Tested by

no test coverage detected