MCPcopy Create free account
hub / github.com/M66B/FairEmail / test

Method test

app/src/main/java/eu/faircode/email/UriHelper.java:649–662  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

647 }
648
649 static void test(Context context) {
650 String[] hosts = new String[]{
651 "child.parent.example.com", "parent.example.com", "example.com", "com",
652 "child.parent.co.uk", "parent.co.uk", "co.uk", "uk",
653 "child.parent.aaa.ck", "parent.aaa.ck", "aaa.ck", "ck",
654 "child.parent.www.ck", "parent.www.ck", "www.ck", "ck"
655 };
656
657 for (String host : hosts)
658 Log.i("PSL " + host + ":" +
659 " tld=" + getTld(context, host) +
660 " root=" + getRootDomain(context, host) +
661 " parent=" + getParentDomain(context, host));
662 }
663}

Callers 1

onCreateMethod · 0.95

Calls 4

iMethod · 0.95
getTldMethod · 0.95
getRootDomainMethod · 0.95
getParentDomainMethod · 0.95

Tested by

no test coverage detected