CoverMe helps you find the most impactful areas to increase test coverage. It sorts functions by how often they are called in Wikimedia production, and annotates them with how much test coverage each has. You can sort by repository and entry point (index.php, api.php, etc.).

MediaWiki core: api

87%
100%
ApiMain::execute (50322 calls)
100%
ApiMain::executeAction (48782 calls)
91%
78%
ApiQuery::execute (23044 calls)
98%
71%
Parser::replaceVariables (14223 calls)
100%
Hooks::run (9982 calls)
100%
Hooks::callHook (9918 calls)
72%
68%
75%
57%
22%
100%
ApiPageSet::execute (8919 calls)
91%
Parser::preprocess (8453 calls)
71%
91%
Parser::parse (7724 calls)
94%
Parser::internalParse (7483 calls)
100%
0%
100%
0%
0%
94%
AutoLoader::autoload (6091 calls)
0%
WebRequest::getSession (6032 calls)
66%
ApiQuerySearch::run (6029 calls)
91%
100%
0%
100%
100%
100%
92%
97%
0%
100%
ApiParse::execute (4386 calls)
100%
WANObjectCache::get (4303 calls)
98%
0%
User::idFromName (3750 calls)
0%
100%
Parser::getTemplateDom (3453 calls)
100%
100%
77%
100%
96%
0%
81%
100%
0%
0%
0%
100%
100%
0%
ApiBase::getDB (2485 calls)
0%
31%
ApiQueryRevisions::run (2466 calls)
0%
100%
100%
ApiPageSet::getDB (2265 calls)
0%
LinkCache::addLinkObj (2209 calls)
0%
Title::getArticleID (2205 calls)
100%
BagOStuff::get (2167 calls)
100%
80%
60%
100%
0%
100%
0%
0%
RepoGroup::findFiles (1741 calls)
100%
0%
0%
LocalRepo::findFiles (1680 calls)
86%
Revision::getContent (1591 calls)
100%
100%
0%
79%
89%
0%
RepoGroup::findFile (1451 calls)
46%
ApiStashEdit::execute (1440 calls)
88%
0%
0%
100%
Message::toString (1368 calls)
0%
0%
FileRepo::findFile (1294 calls)
0%
100%
84%
97%
100%
80%
100%
92%
0%
LinkBatch::execute (1085 calls)
0%
LinkBatch::executeInto (1081 calls)
100%
0%

Source code available under the terms of the AGPL v3, or any later version. Loaded in 1.52 seconds using PHP 7.2.3-1+0~20180306120016.19+stretch~1.gbp81bf3b.