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

Function TestCompatibleModeOverrides

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

Source from the content-addressed store, hash-verified

176}
177
178func TestCompatibleModeOverrides(t *testing.T) {
179 compatibleXlang := NewForyWithOptions(WithXlang(true), WithCompatible(true))
180 explicitSchemaConsistent := NewForyWithOptions(WithCompatible(false), WithXlang(true))
181 explicitSchemaConsistentReverseOrder := NewForyWithOptions(WithXlang(true), WithCompatible(false))
182
183 assert.True(t, compatibleXlang.config.Compatible)
184 assert.NotNil(t, compatibleXlang.metaContext)
185
186 assert.False(t, explicitSchemaConsistent.config.Compatible)
187 assert.Nil(t, explicitSchemaConsistent.metaContext)
188 assert.False(t, explicitSchemaConsistentReverseOrder.config.Compatible)
189 assert.Nil(t, explicitSchemaConsistentReverseOrder.metaContext)
190}
191
192func TestMetaShareDisabled(t *testing.T) {
193 fory := NewForyWithOptions(WithXlang(true), WithCompatible(false))

Callers

nothing calls this directly

Calls 3

NewForyWithOptionsFunction · 0.85
WithXlangFunction · 0.85
WithCompatibleFunction · 0.85

Tested by

no test coverage detected