@@ -55,7 +55,7 @@ class ProviderTests: XCTestCase {
5555
5656 func testUser( ) {
5757 let date = parseDate ( val: " 2025-05-30T10:15:30.00Z " )
58- let context = MutableContext ( targetingKey
: " [email protected] " , structure
: MutableStructure ( attributes
: [ 58+ let context = ImmutableContext ( targetingKey
: " [email protected] " , structure
: ImmutableStructure ( attributes
: [ 5959 " custom1 " : Value . string ( " something " ) ,
6060 " custom2 " : Value . boolean ( true ) ,
6161 " custom3 " : Value . integer ( 5 ) ,
@@ -79,14 +79,14 @@ class ProviderTests: XCTestCase {
7979 opts. flagOverrides = try ! BundleResourceDataSource ( path: " test_json_complex.json " , behaviour: . localOnly)
8080 }
8181
82- let ctx = MutableContext ( targetingKey
: " [email protected] " ) 82+ let ctx = ImmutableContext ( targetingKey
: " [email protected] " ) 8383
8484 let boolVal = provider. getBooleanEvaluation ( key: " disabledFeature " , defaultValue: false , context: ctx)
8585 XCTAssertTrue ( boolVal. value)
8686 XCTAssertEqual ( " v-disabled-t " , boolVal. variant)
8787 XCTAssertEqual ( Reason . targetingMatch. rawValue, boolVal. reason)
8888
89- let ctxCustom = MutableContext ( targetingKey
: " [email protected] " , structure
: MutableStructure ( attributes
: [ 89+ let ctxCustom = ImmutableContext ( targetingKey
: " [email protected] " , structure
: ImmutableStructure ( attributes
: [ 9090 " custom-anything " : Value . string ( " something " )
9191 ] ) )
9292
@@ -102,7 +102,7 @@ class ProviderTests: XCTestCase {
102102 opts. logLevel = . debug
103103 }
104104
105- let ctx = MutableContext ( targetingKey
: " [email protected] " , structure
: MutableStructure ( attributes
: [ 105+ let ctx = ImmutableContext ( targetingKey
: " [email protected] " , structure
: ImmutableStructure ( attributes
: [ 106106 " Date " : Value . date ( parseDate ( val: " 2025-05-30T10:15:30.00Z " ) )
107107 ] ) )
108108
0 commit comments