@@ -17,7 +17,7 @@ final class StoreContextTests: XCTestCase {
1717 XCTAssertEqual ( observer. changedAtomKeys, [ AtomKey ( atom) ] )
1818 XCTAssertEqual ( observer. unassignedAtomKeys, [ AtomKey ( atom) ] )
1919
20- store. state. atomCaches [ key] = ConcreteAtomCache ( atom: atom, value: 1 )
20+ store. state. atomCaches [ key] = AtomCache ( atom: atom, value: 1 )
2121
2222 XCTAssertEqual ( context. read ( atom) , 1 )
2323 XCTAssertNil ( store. state. atomCaches [ key] )
@@ -55,7 +55,7 @@ final class StoreContextTests: XCTestCase {
5555 XCTAssertNil ( store. state. atomStates [ key] )
5656 XCTAssertNil ( store. state. atomCaches [ key] )
5757
58- let atomState = ConcreteAtomState ( coordinator: atom. makeCoordinator ( ) )
58+ let atomState = AtomState ( coordinator: atom. makeCoordinator ( ) )
5959 store. state. atomStates [ key] = atomState
6060 atomState. subscriptions [ subscriptionKey] = Subscription (
6161 notifyUpdate: { updateCount += 1 } ,
@@ -74,7 +74,7 @@ final class StoreContextTests: XCTestCase {
7474 XCTAssertNil ( store. state. atomStates [ key] ? . transaction)
7575 XCTAssertNil ( store. state. atomCaches [ key] )
7676
77- store. state. atomCaches [ key] = ConcreteAtomCache ( atom: atom, value: 2 )
77+ store. state. atomCaches [ key] = AtomCache ( atom: atom, value: 2 )
7878 context. set ( 3 , for: atom)
7979
8080 XCTAssertEqual ( updateCount, 1 )
@@ -85,7 +85,7 @@ final class StoreContextTests: XCTestCase {
8585 XCTAssertTrue ( observer. unassignedAtomKeys. isEmpty)
8686 XCTAssertNotNil ( store. state. atomStates [ key] )
8787 XCTAssertNil ( store. state. atomStates [ key] ? . transaction)
88- XCTAssertEqual ( ( store. state. atomCaches [ key] as? ConcreteAtomCache < TestStateAtom < Int > > ) ? . value, 3 )
88+ XCTAssertEqual ( ( store. state. atomCaches [ key] as? AtomCache < TestStateAtom < Int > > ) ? . value, 3 )
8989 }
9090
9191 func testWatch( ) {
@@ -103,7 +103,7 @@ final class StoreContextTests: XCTestCase {
103103 XCTAssertEqual ( context. watch ( dependency0, in: transaction) , 0 )
104104 XCTAssertEqual ( store. graph. dependencies, [ key: [ dependency0Key] ] )
105105 XCTAssertEqual ( store. graph. children, [ dependency0Key: [ key] ] )
106- XCTAssertEqual ( ( store. state. atomCaches [ dependency0Key] as? ConcreteAtomCache < TestStateAtom < Int > > ) ? . value, 0 )
106+ XCTAssertEqual ( ( store. state. atomCaches [ dependency0Key] as? AtomCache < TestStateAtom < Int > > ) ? . value, 0 )
107107 XCTAssertNotNil ( store. state. atomStates [ dependency0Key] )
108108 XCTAssertEqual ( observer. assignedAtomKeys, [ dependency0Key] )
109109 XCTAssertEqual ( observer. changedAtomKeys, [ dependency0Key] )
@@ -151,8 +151,8 @@ final class StoreContextTests: XCTestCase {
151151 XCTAssertEqual ( initialValue, 0 )
152152 XCTAssertNotNil ( container. wrapper. subscriptions [ key] )
153153 XCTAssertNotNil ( store. state. atomStates [ key] ? . subscriptions [ subscriptionKey] )
154- XCTAssertEqual ( ( store. state. atomCaches [ key] as? ConcreteAtomCache < TestAtom > ) ? . value, 0 )
155- XCTAssertEqual ( ( store. state. atomCaches [ dependencyKey] as? ConcreteAtomCache < DependencyAtom > ) ? . value, 0 )
154+ XCTAssertEqual ( ( store. state. atomCaches [ key] as? AtomCache < TestAtom > ) ? . value, 0 )
155+ XCTAssertEqual ( ( store. state. atomCaches [ dependencyKey] as? AtomCache < DependencyAtom > ) ? . value, 0 )
156156 XCTAssertEqual ( observer. assignedAtomKeys, [ key, dependencyKey] )
157157 XCTAssertEqual ( observer. changedAtomKeys, [ dependencyKey, key] )
158158 XCTAssertTrue ( observer. unassignedAtomKeys. isEmpty)
@@ -194,7 +194,7 @@ final class StoreContextTests: XCTestCase {
194194 }
195195
196196 let value1 = await context. refresh ( atom) . value
197- let cachedValue = await ( store. state. atomCaches [ key] as? ConcreteAtomCache < TestTaskAtom < Int > > ) ? . value? . value
197+ let cachedValue = await ( store. state. atomCaches [ key] as? AtomCache < TestTaskAtom < Int > > ) ? . value? . value
198198
199199 XCTAssertEqual ( value1, 0 )
200200 XCTAssertNotNil ( store. state. atomCaches [ key] )
@@ -270,13 +270,13 @@ final class StoreContextTests: XCTestCase {
270270
271271 _ = context. watch ( atom, container: container. wrapper) { }
272272
273- let state = store. state. atomStates [ key] as? ConcreteAtomState < TestAtom . Coordinator >
273+ let state = store. state. atomStates [ key] as? AtomState < TestAtom . Coordinator >
274274
275275 XCTAssertNotNil ( state? . coordinator)
276276
277277 context. reset ( atom)
278278
279- let newState = store. state. atomStates [ key] as? ConcreteAtomState < TestAtom . Coordinator >
279+ let newState = store. state. atomStates [ key] as? AtomState < TestAtom . Coordinator >
280280
281281 XCTAssertTrue ( state? . coordinator === newState? . coordinator)
282282 }
0 commit comments