(t *testing.T)
| 164 | } |
| 165 | |
| 166 | func 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 | |
| 178 | func TestCompatibleModeOverrides(t *testing.T) { |
| 179 | compatibleXlang := NewForyWithOptions(WithXlang(true), WithCompatible(true)) |
nothing calls this directly
no test coverage detected