| /expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/selectionpolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClientTest.kt | 29 update2.lastAccessed = Date(1619569813252L) in testSelectUpdatesToDelete_BasicCase() 41 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_BasicCase() 49 update2.lastAccessed = Date(1619569813250L) in testSelectUpdatesToDelete_SameLastAccessedDate() 53 listOf(update3, update4, update1, update2), in testSelectUpdatesToDelete_SameLastAccessedDate() 66 update2.lastAccessed = Date(1619569813252L) in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 70 listOf(update1, update2, update3, update4), in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 75 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 82 listOf(update1, update2, update3, update4), in testSelectUpdatesToDelete_NoLaunchedUpdate() 95 listOf(update1, update2), in testSelectUpdatesToDelete_BelowMaxNumber() 96 update2, in testSelectUpdatesToDelete_BelowMaxNumber() [all …]
|
| H A D | ReaperSelectionPolicyFilterAwareTest.kt | 16 …private val update2 = UpdateEntity(UUID.randomUUID(), Date(1608667857775L), runtimeVersion, scopeK… constant in expo.modules.updates.selectionpolicy.ReaperSelectionPolicyFilterAwareTest 31 listOf(update1, update2, update3), in testSelectUpdatesToDelete_olderUpdates() 37 Assert.assertFalse(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_olderUpdates() 44 listOf(update1, update2), in testSelectUpdatesToDelete_newerUpdates() 54 listOf(update1, update2, update3, update4, update5), in testSelectUpdatesToDelete_olderAndNewerUpdates() 60 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_olderAndNewerUpdates() 71 listOf(update1, update2, update3, update4DifferentScope), in testSelectUpdatesToDelete_differentScopeKey()
|
| /expo/packages/expo-updates/ios/Tests/ |
| H A D | ReaperSelectionPolicyDevelopmentClientSpec.swift | 12 var update2: Update! in spec() variable 38 update2 = Update( in spec() 107 update2.lastAccessed = Date(timeIntervalSince1970: 1619569812) in spec() 116 expect(updatesToDelete.contains(update2)) == true in spec() 123 update2.lastAccessed = Date(timeIntervalSince1970: 1619569810) in spec() 127 …sToDelete(withLaunchedUpdate: update4, updates: [update3, update4, update1, update2], filters: nil) in spec() 136 update2.lastAccessed = Date(timeIntervalSince1970: 1619569812) in spec() 140 …onPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [update1, update2, update3, update4… in spec() 142 expect(updatesToDelete.contains(update2)) == true in spec() 147 …otal = selectionPolicy.updatesToDelete(withLaunchedUpdate: update2, updates: [update1, update2], f… in spec() [all …]
|
| H A D | ReaperSelectionPolicyFilterAwareSpec.swift | 14 var update2: Update! in spec() variable 40 update2 = Update( in spec() 102 …onPolicy.updatesToDelete(withLaunchedUpdate: update3, updates: [update1, update2, update3], filter… in spec() 105 expect(updatesToDelete.contains(update2)) == false in spec() 110 …ctionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [update1, update2], filters: nil) in spec() 115 …onPolicy.updatesToDelete(withLaunchedUpdate: update4, updates: [update1, update2, update3, update4… in spec() 118 expect(updatesToDelete.contains(update2)) == true in spec() 139 …esToDelete(withLaunchedUpdate: update4DifferentScope, updates: [update1, update2, update3, update4… in spec()
|
| H A D | DatabaseIntegrityCheckSpec.swift | 70 let update2 = Update( in spec() variable 86 try! db.addUpdate(update2) in spec() 90 …yCheck().run(withDatabase: db, directory: testDatabaseDir, config: config, embeddedUpdate: update2) in spec() 94 expect(update2.updateId) == allUpdates.first?.updateId in spec() 128 let update2 = Update( in spec() variable 144 try! db.addUpdate(update2) in spec() 146 try! db.addNewAssets([asset2], toUpdateWithId: update2.updateId) in spec()
|
| H A D | UpdatesDatabaseSpec.swift | 231 let update2 = NewUpdate.update( in spec() variable 240 try! db.addUpdate(update2) in spec() 242 try! db.addNewAssets([asset3], toUpdateWithId: update2.updateId) in spec()
|
| /expo/packages/expo-updates/ios/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 37 var updatesMutable = updates.sorted { update1, update2 in in updatesToDelete() 38 if update1.lastAccessed.compare(update2.lastAccessed) == .orderedSame { in updatesToDelete() 39 return update1.commitTime < update2.commitTime in updatesToDelete() 41 return update1.lastAccessed < update2.lastAccessed in updatesToDelete()
|
| /expo/ios/versioned/sdk49/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 37 var updatesMutable = updates.sorted { update1, update2 in in updatesToDelete() 38 if update1.lastAccessed.compare(update2.lastAccessed) == .orderedSame { in updatesToDelete() 39 return update1.commitTime < update2.commitTime in updatesToDelete() 41 return update1.lastAccessed < update2.lastAccessed in updatesToDelete()
|
| /expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/db/ |
| H A D | UpdatesDatabaseTest.kt | 108 … val update2 = UpdateEntity(UUID.randomUUID(), Date(), runtimeVersion, projectId, JSONObject("{}")) in testDeleteUnusedAssets() constant 110 updateDao.insertUpdate(update2) in testDeleteUnusedAssets() 111 assetDao.insertAssets(listOf(asset2), update2) in testDeleteUnusedAssets() 112 assetDao.addExistingAssetToUpdate(update2, commonAsset, false) in testDeleteUnusedAssets() 130 if (update.id == update2.id) { in testDeleteUnusedAssets() 153 …val update2 = UpdateEntity(UUID.randomUUID(), Date(Date().time + 1), runtimeVersion, projectId, JS… in testDeleteUnusedAssets_DuplicateFilenames() constant 155 updateDao.insertUpdate(update2) in testDeleteUnusedAssets_DuplicateFilenames() 157 updateDao.markUpdateFinished(update2) in testDeleteUnusedAssets_DuplicateFilenames() 169 assetDao.insertAssets(listOf(asset3), update2) in testDeleteUnusedAssets_DuplicateFilenames()
|
| /expo/ios/versioned/sdk48/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI48_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 43 ABI48_0_0EXUpdatesUpdate *update2 = (ABI48_0_0EXUpdatesUpdate *)obj2; 44 NSComparisonResult result = [update1.lastAccessed compare:update2.lastAccessed]; 46 result = [update1.commitTime compare:update2.commitTime];
|
| /expo/ios/versioned/sdk47/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI47_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 43 ABI47_0_0EXUpdatesUpdate *update2 = (ABI47_0_0EXUpdatesUpdate *)obj2; 44 NSComparisonResult result = [update1.lastAccessed compare:update2.lastAccessed]; 46 result = [update1.commitTime compare:update2.commitTime];
|