# Unlure for Android 0.6.2: unit tests, 34 tests in 6 groups # # What they check: the app's own logic, run on a computer rather than a phone: # the built-in list, the blocking rules, the DNS packets the filter reads and # writes, the waiting-period rules for changes, how long the phone may remember # an answer, and the rules for paid time, including a phone that cannot reach # its account. # What they do not check: the VPN itself on a real phone. That is not covered # by an automated test. # # Run: 18 November 2026, 16:55 UTC, JUnit 4.13.2 on JDK 17 # Code: the Android app as published in release v0.6.2 (versionName 0.6.2, versionCode 5) # Command: gradlew :app:testReleaseUnitTest # Result: 34 tests, 0 failures, 0 errors # # The source code is not public, so this log is our record of the run, not # something you can repeat. The checks you can run on your own phone are on # https://www.unlure.in/trust # ---------------------------------------------------------------------- BlocklistTest: 3 tests, 0 failures PASS exactAndParentMatches A listed site and its subdomains are matched; look-alike names are not. PASS emptyListMatchesNothing An empty list blocks nothing. PASS shippedListIsSortedAndWorks The list shipped in the APK (496,609 lines) is sorted and has plain line endings, so lookups in it work. pornhub.com and www.xvideos.com match; google.com and reddit.com do not. RulesTest: 6 tests, 0 failures PASS blocksAdultAndCustom Listed adult sites and your own blocked sites are blocked; example.com is not. PASS nothingWhenOff With protection off, nothing is blocked. PASS redditImagesFollowTheSetting i.redd.it and preview.redd.it are blocked, and so are Reddit's video server packaged-media.redd.it and its banner server styles.redditmedia.com (both added in 0.6.1); www.reddit.com and www.redditstatic.com are not. Switching the filter off lets the images through. PASS safeSearchRewrites Google (google.co.in too), YouTube and Bing are sent to their SafeSearch addresses; mail.google.com is left alone; switching the filter off stops it. PASS bypassRoutes dns.google and www.nordvpn.com are blocked; Firefox's check for a filter gets "does not exist"; encrypted DNS stays blocked even with the VPN and proxy filter switched off. Every server name of a DNS-only company is blocked, such as dns11.quad9.net, the Quad9 address Chrome offers (added in 0.6.1). PASS caseAndTrailingDot Capital letters and a trailing dot do not get a name past the list. PacketsTest: 5 tests, 0 failures PASS parsesAndRepliesToAQuery A lookup is read correctly and answered with 0.0.0.0 in a valid packet. PASS aaaaBlockIsAllZero An IPv6 lookup for a blocked name is answered with ::. PASS recognisesFamilyShieldBlocks OpenDNS FamilyShield's block answers are recognised, IPv4 and IPv6. PASS safeSearchAnswersMoveToTheAskedName SafeSearch addresses come back under the name that was asked for. PASS rejectsJunk Malformed packets are ignored. ChangesTest: 4 tests, 0 failures PASS strengtheningAppliesAtOnce Adding a site and lengthening the wait apply at once; a waiting period that is not one of the choices is refused. PASS weakeningNeedsApproval Turning protection off, removing a site, shortening the wait and switching off a filter are refused unless the change has waited out the period on the dashboard. PASS turningBackOnResetsTheClock Turning protection back on resets "protected since". PASS stateRoundTrips Saved settings load back unchanged. TtlTest: 1 test, 0 failures PASS capsLongTtlsAndKeepsShortOnes The phone may remember an answer the filter passes on for at most 60 seconds, so a site blocked from the dashboard is looked up again within a minute rather than hours later. PaidTest: 15 tests, 0 failures PASS aNewInstallCannotSwitchOnUntilLinked A new install cannot switch protection on. A linked phone can, and so can an unlinked one that still has paid time left. PASS aLinkedPhoneCannotSwitchOnOnceThePackHasEnded A linked phone whose pack has ended cannot switch itself back on. PASS keepsThePlanFromTheWebsite The phone keeps the paid time the website reports. PASS unlinkingKeepsPaidTimeAndIsNeverQuicker Unlinking keeps the paid time; with none left, protection still gets one full waiting period, so unlinking is never a quicker way out. PASS switchesOffWhenUnlinkedPaidTimeRunsOut An unlinked phone switches off when its paid time runs out, not before. PASS anUpgradeFromTheFreeVersionGetsNotice A phone upgraded from the free version gets one waiting period's notice. PASS theWebsitesClockMovesOnWithTimeSinceStartUp After a check-in the phone keeps the website's time and moves it on by the time since the phone started, which changing the phone's date does not touch. An answer that carries no time leaves the clock as it was. PASS aRestartNeverMovesTheClockAhead After the phone restarts, only the time since the restart counts, so the clock can fall behind the website's but never runs ahead of it. PASS aLinkedPhoneOutOfTouchSwitchesOffWhenThePaidTimeItHeardOfRunsOut A linked phone that cannot reach its account switches protection off when the paid time it last heard of runs out, not before, and cannot then switch itself back on. PASS thePhonesOwnDateCannotEndItEarly Setting the phone's date years ahead does not switch protection off: only the website's clock counts. PASS noEndWithoutTheWebsitesTimeOrAPack No end is applied before the phone has heard the website's time, to a phone linked before packs existed, or to an unlinked phone, which keeps its own rule. PASS eachRoundMovesTheClockAndSwitchesOffAtTheEnd Each round of the filter moves the clock on. Protection stays on until the paid time runs out, then switches off. PASS comesBackOnOnceTimeIsBought A phone that switched itself off comes back on when a check-in shows more time was bought, unless protection was turned off on the dashboard since. PASS saysWhenThePhoneHasNotReachedItsAccountForADay The phone says it cannot reach its account only after a whole day without a check-in, counted from the link if it never checked in. PASS newFieldsRoundTrip The paid-time fields, and the phone's copy of the website's clock, are saved and load back unchanged.