(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func 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 | |
| 192 | func TestMetaShareDisabled(t *testing.T) { |
| 193 | fory := NewForyWithOptions(WithXlang(true), WithCompatible(false)) |
nothing calls this directly
no test coverage detected