| /expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/selectionpolicy/ |
| H A D | ReaperSelectionPolicyFilterAwareTest.kt | 25 Assert.assertEquals(0, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_onlyOneUpdate() 35 Assert.assertEquals(1, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_olderUpdates() 36 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_olderUpdates() 37 Assert.assertFalse(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_olderUpdates() 38 Assert.assertFalse(updatesToDelete.contains(update3)) in testSelectUpdatesToDelete_olderUpdates() 48 Assert.assertEquals(0, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_newerUpdates() 58 Assert.assertEquals(2, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_olderAndNewerUpdates() 59 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_olderAndNewerUpdates() 60 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_olderAndNewerUpdates() 61 Assert.assertFalse(updatesToDelete.contains(update3)) in testSelectUpdatesToDelete_olderAndNewerUpdates() [all …]
|
| H A D | ReaperSelectionPolicyDevelopmentClientTest.kt | 33 val updatesToDelete = in testSelectUpdatesToDelete_BasicCase() constant 39 Assert.assertEquals(2, updatesToDelete.size) in testSelectUpdatesToDelete_BasicCase() 40 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_BasicCase() 41 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_BasicCase() 52 val updatesToDelete = selectionPolicy.selectUpdatesToDelete( in testSelectUpdatesToDelete_SameLastAccessedDate() constant 57 Assert.assertEquals(1, updatesToDelete.size) in testSelectUpdatesToDelete_SameLastAccessedDate() 58 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_SameLastAccessedDate() 69 val updatesToDelete = selectionPolicy.selectUpdatesToDelete( in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() constant 74 Assert.assertEquals(1, updatesToDelete.size) in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 75 Assert.assertTrue(updatesToDelete.contains(update2)) in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() [all …]
|
| H A D | SelectionPolicyFilterAwareTest.kt | 56 Assert.assertEquals(3, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_SecondNewestMatching() 57 Assert.assertTrue(updatesToDelete.contains(updateRollout0)) in testSelectUpdatesToDelete_SecondNewestMatching() 58 Assert.assertTrue(updatesToDelete.contains(updateDefault1)) in testSelectUpdatesToDelete_SecondNewestMatching() 59 Assert.assertFalse(updatesToDelete.contains(updateRollout1)) in testSelectUpdatesToDelete_SecondNewestMatching() 60 Assert.assertTrue(updatesToDelete.contains(updateDefault2)) in testSelectUpdatesToDelete_SecondNewestMatching() 61 Assert.assertFalse(updatesToDelete.contains(updateRollout2)) in testSelectUpdatesToDelete_SecondNewestMatching() 67 …val updatesToDelete = selectionPolicy.selectUpdatesToDelete(listOf(updateDefault1, updateDefault2,… in testSelectUpdatesToDelete_NoneOlderMatching() constant 68 Assert.assertEquals(1, updatesToDelete.size.toLong()) in testSelectUpdatesToDelete_NoneOlderMatching() 69 Assert.assertTrue(updatesToDelete.contains(updateDefault1)) in testSelectUpdatesToDelete_NoneOlderMatching() 70 Assert.assertFalse(updatesToDelete.contains(updateDefault2)) in testSelectUpdatesToDelete_NoneOlderMatching() [all …]
|
| /expo/packages/expo-updates/ios/Tests/ |
| H A D | ReaperSelectionPolicyFilterAwareSpec.swift | 102 …let updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update3, updates: [updat… in spec() variable 103 expect(updatesToDelete.count) == 1 in spec() 104 expect(updatesToDelete.contains(update1)) == true in spec() 105 expect(updatesToDelete.contains(update2)) == false in spec() 106 expect(updatesToDelete.contains(update3)) == false in spec() 110 …let updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [updat… in spec() variable 111 expect(updatesToDelete.count) == 0 in spec() 116 expect(updatesToDelete.count) == 2 in spec() 117 expect(updatesToDelete.contains(update1)) == true in spec() 118 expect(updatesToDelete.contains(update2)) == true in spec() [all …]
|
| H A D | ReaperSelectionPolicyDevelopmentClientSpec.swift | 113 …let updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update5, updates: [updat… in spec() variable 114 expect(updatesToDelete.count) == 2 in spec() 115 expect(updatesToDelete.contains(update1)) == true in spec() 116 expect(updatesToDelete.contains(update2)) == true in spec() 127 …let updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update4, updates: [updat… in spec() variable 128 expect(updatesToDelete.count) == 1 in spec() 129 expect(updatesToDelete.contains(update1)) == true in spec() 140 …let updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [updat… in spec() variable 141 expect(updatesToDelete.count) == 1 in spec() 142 expect(updatesToDelete.contains(update2)) == true in spec() [all …]
|
| /expo/ios/versioned/sdk49/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyFilterAware.swift | 18 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 19 var updatesToDelete: [Update] = [] in updatesToDelete() variable 39 updatesToDelete.append(update) in updatesToDelete() 60 updatesToDelete.remove(nextNewestUpdateMatchingFilters) in updatesToDelete() 62 updatesToDelete.remove(nextNewestUpdate) in updatesToDelete() 64 return updatesToDelete in updatesToDelete()
|
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 32 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 44 var updatesToDelete: [Update] = [] in updatesToDelete() variable 65 updatesToDelete.append(oldest) in updatesToDelete() 69 return updatesToDelete in updatesToDelete()
|
| H A D | SelectionPolicy.swift | 65 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 66 …return reaperSelectionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates: updates,… in updatesToDelete()
|
| H A D | ReaperSelectionPolicy.swift | 11 …@objc func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters: … function
|
| /expo/packages/expo-updates/ios/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyFilterAware.swift | 18 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 19 var updatesToDelete: [Update] = [] in updatesToDelete() variable 39 updatesToDelete.append(update) in updatesToDelete() 60 updatesToDelete.remove(nextNewestUpdateMatchingFilters) in updatesToDelete() 62 updatesToDelete.remove(nextNewestUpdate) in updatesToDelete() 64 return updatesToDelete in updatesToDelete()
|
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 32 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 44 var updatesToDelete: [Update] = [] in updatesToDelete() variable 65 updatesToDelete.append(oldest) in updatesToDelete() 69 return updatesToDelete in updatesToDelete()
|
| H A D | SelectionPolicy.swift | 65 …public func updatesToDelete(withLaunchedUpdate launchedUpdate: Update, updates: [Update], filters:… in updatesToDelete() function 66 …return reaperSelectionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates: updates,… in updatesToDelete()
|
| /expo/packages/expo-updates/android/src/main/java/expo/modules/updates/selectionpolicy/ |
| H A D | ReaperSelectionPolicyFilterAware.kt | 25 val updatesToDelete = mutableListOf<UpdateEntity>() in selectUpdatesToDelete() constant 37 updatesToDelete.add(update) in selectUpdatesToDelete() 49 updatesToDelete.remove(nextNewestUpdateMatchingFilters) in selectUpdatesToDelete() 51 updatesToDelete.remove(nextNewestUpdate) in selectUpdatesToDelete() 53 return updatesToDelete in selectUpdatesToDelete()
|
| H A D | ReaperSelectionPolicyDevelopmentClient.kt | 35 val updatesToDelete = mutableListOf<UpdateEntity>() in <lambda>() constant 48 updatesToDelete.add(oldest) in <lambda>() 51 return updatesToDelete in <lambda>()
|
| /expo/packages/expo-updates/android/src/main/java/expo/modules/updates/db/ |
| H A D | DatabaseIntegrityCheck.kt | 23 val updatesToDelete = mutableListOf<UpdateEntity>() in run() constant 28 updatesToDelete.add(update) in run() 32 if (updatesToDelete.size > 0) { in run() 33 database.updateDao().deleteUpdates(updatesToDelete) in run()
|
| /expo/ios/versioned/sdk48/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI48_0_0EXUpdatesReaperSelectionPolicyFilterAware.m | 16 NSMutableArray<ABI48_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 28 [updatesToDelete addObject:update]; 40 [updatesToDelete removeObject:nextNewestUpdateMatchingFilters]; 42 [updatesToDelete removeObject:nextNewestUpdate]; 44 return updatesToDelete;
|
| H A D | ABI48_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 51 NSMutableArray<ABI48_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 65 [updatesToDelete addObject:oldest]; 69 return updatesToDelete;
|
| /expo/ios/versioned/sdk47/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI47_0_0EXUpdatesReaperSelectionPolicyFilterAware.m | 16 NSMutableArray<ABI47_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 28 [updatesToDelete addObject:update]; 40 [updatesToDelete removeObject:nextNewestUpdateMatchingFilters]; 42 [updatesToDelete removeObject:nextNewestUpdate]; 44 return updatesToDelete;
|
| H A D | ABI47_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 51 NSMutableArray<ABI47_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 65 [updatesToDelete addObject:oldest]; 69 return updatesToDelete;
|
| /expo/packages/expo-updates/ios/EXUpdates/Database/ |
| H A D | UpdatesDatabaseIntegrityCheck.swift | 25 let updatesToDelete = updatesWithEmbeddedStatus.filter { update in variable 32 if !updatesToDelete.isEmpty { 33 try database.deleteUpdates(updatesToDelete)
|
| H A D | UpdatesReaper.swift | 48 …var updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates:… variable 50 try database.deleteUpdates(updatesToDelete)
|
| /expo/ios/versioned/sdk49/EXUpdates/EXUpdates/Database/ |
| H A D | UpdatesDatabaseIntegrityCheck.swift | 25 let updatesToDelete = updatesWithEmbeddedStatus.filter { update in variable 32 if !updatesToDelete.isEmpty { 33 try database.deleteUpdates(updatesToDelete)
|
| H A D | UpdatesReaper.swift | 48 …var updatesToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates:… variable 50 try database.deleteUpdates(updatesToDelete)
|
| /expo/ios/versioned/sdk48/EXUpdates/EXUpdates/Database/ |
| H A D | ABI48_0_0EXUpdatesDatabaseIntegrityCheck.m | 47 NSMutableArray<ABI48_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 50 [updatesToDelete addObject:update]; 54 if (updatesToDelete.count > 0) { 55 [database deleteUpdates:updatesToDelete error:&err];
|
| /expo/ios/versioned/sdk47/EXUpdates/EXUpdates/Database/ |
| H A D | ABI47_0_0EXUpdatesDatabaseIntegrityCheck.m | 47 NSMutableArray<ABI47_0_0EXUpdatesUpdate *> *updatesToDelete = [NSMutableArray new]; 50 [updatesToDelete addObject:update]; 54 if (updatesToDelete.count > 0) { 55 [database deleteUpdates:updatesToDelete error:&err];
|