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: all

87%
Parser::braceSubstitution (153978 calls)
98%
100%
ApiMain::execute (50305 calls)
100%
ApiMain::executeAction (48766 calls)
91%
0%
MediaWiki::run (40498 calls)
0%
MediaWiki::main (39926 calls)
71%
Parser::replaceVariables (36121 calls)
91%
Parser::parse (33810 calls)
94%
Parser::internalParse (32032 calls)
100%
0%
0%
100%
Hooks::callHook (24649 calls)
78%
ApiQuery::execute (23039 calls)
100%
Hooks::run (22499 calls)
0%
MediaWiki::performAction (22101 calls)
71%
0%
Article::view (17988 calls)
0%
0%
100%
100%
92%
0%
JobRunner::run (14078 calls)
0%
JobRunner::executeJob (13190 calls)
75%
72%
0%
68%
57%
94%
AutoLoader::autoload (10969 calls)
0%
0%
RefreshLinksJob::run (10639 calls)
0%
98%
WANObjectCache::getMulti (10427 calls)
100%
WANObjectCache::get (10412 calls)
0%
OutputPage::output (10346 calls)
96%
91%
Parser::preprocess (9561 calls)
0%
22%
100%
ApiPageSet::execute (8918 calls)
100%
Parser::getTemplateDom (8346 calls)
0%
0%
WebRequest::getSession (7834 calls)
100%
100%
100%
77%
0%
100%
91%
66%
ApiQuerySearch::run (6025 calls)
100%
Message::toString (5754 calls)
0%
100%
BagOStuff::get (5589 calls)
97%
100%
100%
81%
0%
0%
0%
0%
0%
SpecialPage::run (5164 calls)
100%
100%
0%
LinkCache::addLinkObj (4662 calls)
60%
100%
0%
Title::getArticleID (4407 calls)
100%
ApiParse::execute (4386 calls)
100%
0%
User::idFromName (4266 calls)
100%
LinksUpdate::doUpdate (3866 calls)
86%
Revision::getContent (3728 calls)
100%
100%
79%
0%
0%
100%
0%
100%
100%
0%
89%
100%
Message::text (2966 calls)
100%
0%
0%
100%
96%
82%
0%
100%
0%
0%
Message::fetchMessage (2530 calls)
0%
RepoGroup::findFile (2498 calls)
100%

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