NxTIC/subDir/test/phpunit/coverage/dashboard.html

345 lines
18 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard for /var/www/socioview/manager</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/nv.d3.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="index.html">/var/www/socioview/manager</a></li>
<li class="active">(Dashboard)</li>
</ol>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>Classes</h2>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Coverage Distribution</h3>
<div id="classCoverageDistribution" style="height: 300px;">
<svg></svg>
</div>
</div>
<div class="col-md-6">
<h3>Complexity</h3>
<div id="classComplexity" style="height: 300px;">
<svg></svg>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Insufficient Coverage</h3>
<div class="scrollbox">
<table class="table">
<thead>
<tr>
<th>Class</th>
<th class="text-right">Coverage</th>
</tr>
</thead>
<tbody>
<tr><td><a href="repo/parentRepo.php.html#6">parentRepo</a></td><td class="text-right">0%</td></tr>
<tr><td><a href="sessionManager.php.html#6">sessionManager</a></td><td class="text-right">6%</td></tr>
<tr><td><a href="repo/token.php.html#7">token</a></td><td class="text-right">15%</td></tr>
<tr><td><a href="ModuleResponse.php.html#17">ModuleResponse</a></td><td class="text-right">56%</td></tr>
<tr><td><a href="module/module.php.html#6">module</a></td><td class="text-right">57%</td></tr>
<tr><td><a href="Repo.php.html#17">Repo</a></td><td class="text-right">65%</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#8">ResourceDispatcher</a></td><td class="text-right">68%</td></tr>
<tr><td><a href="Database.php.html#6">DataBase</a></td><td class="text-right">85%</td></tr>
<tr><td><a href="ModuleRequest.php.html#7">ModuleRequest</a></td><td class="text-right">86%</td></tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
<h3>Project Risks</h3>
<div class="scrollbox">
<table class="table">
<thead>
<tr>
<th>Class</th>
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
</tr>
</thead>
<tbody>
<tr><td><a href="repo/parentRepo.php.html#6">parentRepo</a></td><td class="text-right">210</td></tr>
<tr><td><a href="repo/token.php.html#7">token</a></td><td class="text-right">115</td></tr>
<tr><td><a href="sessionManager.php.html#6">sessionManager</a></td><td class="text-right">110</td></tr>
<tr><td><a href="Database.php.html#6">DataBase</a></td><td class="text-right">66</td></tr>
<tr><td><a href="ModuleRequest.php.html#7">ModuleRequest</a></td><td class="text-right">51</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#8">ResourceDispatcher</a></td><td class="text-right">49</td></tr>
<tr><td><a href="Repo.php.html#17">Repo</a></td><td class="text-right">24</td></tr>
<tr><td><a href="ModuleResponse.php.html#17">ModuleResponse</a></td><td class="text-right">15</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>Methods</h2>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Coverage Distribution</h3>
<div id="methodCoverageDistribution" style="height: 300px;">
<svg></svg>
</div>
</div>
<div class="col-md-6">
<h3>Complexity</h3>
<div id="methodComplexity" style="height: 300px;">
<svg></svg>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Insufficient Coverage</h3>
<div class="scrollbox">
<table class="table">
<thead>
<tr>
<th>Method</th>
<th class="text-right">Coverage</th>
</tr>
</thead>
<tbody>
<tr><td><a href="repo/token.php.html#162"><abbr title="token::remove">remove</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="sessionManager.php.html#22"><abbr title="sessionManager::reset_session">reset_session</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="repo/token.php.html#95"><abbr title="token::generate">generate</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="repo/token.php.html#35"><abbr title="token::getAll">getAll</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="module/module.php.html#8"><abbr title="module::method">method</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#239"><abbr title="ResourceDispatcher::view">view</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="repo/parentRepo.php.html#22"><abbr title="parentRepo::__callStatic">__callStatic</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ModuleResponse.php.html#137"><abbr title="ModuleResponse::serialize">serialize</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Database.php.html#312"><abbr title="DataBase::frDate">frDate</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="sessionManager.php.html#60"><abbr title="sessionManager::session_start">session_start</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ModuleResponse.php.html#122"><abbr title="ModuleResponse::getAll">getAll</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="sessionManager.php.html#46"><abbr title="sessionManager::update_token">update_token</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ModuleResponse.php.html#50"><abbr title="ModuleResponse::append">append</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ModuleRequest.php.html#144"><abbr title="ModuleRequest::fromString">fromString</a></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#176"><abbr title="ResourceDispatcher::buildPath">buildPath</a></a></td><td class="text-right">58%</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#33"><abbr title="ResourceDispatcher::__construct">__construct</a></a></td><td class="text-right">60%</td></tr>
<tr><td><a href="Repo.php.html#143"><abbr title="Repo::checkPath">checkPath</a></a></td><td class="text-right">60%</td></tr>
<tr><td><a href="Repo.php.html#46"><abbr title="Repo::__construct">__construct</a></a></td><td class="text-right">64%</td></tr>
<tr><td><a href="Repo.php.html#114"><abbr title="Repo::dispatch">dispatch</a></a></td><td class="text-right">66%</td></tr>
<tr><td><a href="ModuleRequest.php.html#104"><abbr title="ModuleRequest::dispatch">dispatch</a></a></td><td class="text-right">77%</td></tr>
<tr><td><a href="Database.php.html#47"><abbr title="DataBase::getInstance">getInstance</a></a></td><td class="text-right">85%</td></tr>
<tr><td><a href="repo/token.php.html#57"><abbr title="token::check">check</a></a></td><td class="text-right">85%</td></tr>
<tr><td><a href="Database.php.html#27"><abbr title="DataBase::__construct">__construct</a></a></td><td class="text-right">88%</td></tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
<h3>Project Risks</h3>
<div class="scrollbox">
<table class="table">
<thead>
<tr>
<th>Method</th>
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
</tr>
</thead>
<tbody>
<tr><td><a href="repo/parentRepo.php.html#22"><abbr title="parentRepo::__callStatic">__callStatic</abbr></a></td><td class="text-right">182</td></tr>
<tr><td><a href="sessionManager.php.html#60"><abbr title="sessionManager::session_start">session_start</abbr></a></td><td class="text-right">56</td></tr>
<tr><td><a href="repo/token.php.html#95"><abbr title="token::generate">generate</abbr></a></td><td class="text-right">30</td></tr>
<tr><td><a href="repo/token.php.html#162"><abbr title="token::remove">remove</abbr></a></td><td class="text-right">12</td></tr>
<tr><td><a href="ModuleRequest.php.html#144"><abbr title="ModuleRequest::fromString">fromString</abbr></a></td><td class="text-right">12</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#33"><abbr title="ResourceDispatcher::__construct">__construct</abbr></a></td><td class="text-right">8</td></tr>
<tr><td><a href="Repo.php.html#46"><abbr title="Repo::__construct">__construct</abbr></a></td><td class="text-right">7</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#176"><abbr title="ResourceDispatcher::buildPath">buildPath</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="Database.php.html#47"><abbr title="DataBase::getInstance">getInstance</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="sessionManager.php.html#22"><abbr title="sessionManager::reset_session">reset_session</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="ResourceDispatcher.php.html#239"><abbr title="ResourceDispatcher::view">view</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="Repo.php.html#143"><abbr title="Repo::checkPath">checkPath</abbr></a></td><td class="text-right">5</td></tr>
<tr><td><a href="Repo.php.html#114"><abbr title="Repo::dispatch">dispatch</abbr></a></td><td class="text-right">3</td></tr>
<tr><td><a href="ModuleRequest.php.html#104"><abbr title="ModuleRequest::dispatch">dispatch</abbr></a></td><td class="text-right">3</td></tr>
<tr><td><a href="repo/token.php.html#57"><abbr title="token::check">check</abbr></a></td><td class="text-right">3</td></tr>
<tr><td><a href="Database.php.html#27"><abbr title="DataBase::__construct">__construct</abbr></a></td><td class="text-right">2</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<footer>
<hr/>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 2.1.7</a> using <a href="http://php.net/" target="_top">PHP 5.6.11-1ubuntu3.2</a> and <a href="http://phpunit.de/">PHPUnit 4.7.6</a> at Mon Apr 25 7:16:02 UTC 2016.</small>
</p>
</footer>
</div>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/holder.min.js" type="text/javascript"></script>
<script src="js/d3.min.js" type="text/javascript"></script>
<script src="js/nv.d3.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
nv.addGraph(function() {
var chart = nv.models.multiBarChart();
chart.tooltips(false)
.showControls(false)
.showLegend(false)
.reduceXTicks(false)
.staggerLabels(true)
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
.datum(getCoverageDistributionData([1,1,1,0,0,0,2,2,0,2,0,1], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
nv.addGraph(function() {
var chart = nv.models.multiBarChart();
chart.tooltips(false)
.showControls(false)
.showLegend(false)
.reduceXTicks(false)
.staggerLabels(true)
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
.datum(getCoverageDistributionData([14,0,0,0,0,0,1,4,1,3,3,22], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
function getCoverageDistributionData(data, label) {
var labels = [
'0%',
'0-10%',
'10-20%',
'20-30%',
'30-40%',
'40-50%',
'50-60%',
'60-70%',
'70-80%',
'80-90%',
'90-100%',
'100%'
];
var values = [];
$.each(labels, function(key) {
values.push({x: labels[key], y: data[key]});
});
return [
{
key: label,
values: values,
color: "#4572A7"
}
];
}
nv.addGraph(function() {
var chart = nv.models.scatterChart()
.showDistX(true)
.showDistY(true)
.showLegend(false)
.forceX([0, 100]);
chart.scatter.onlyCircles(false);
chart.tooltipContent(function(key, y, e, graph) {
return '<p>' + graph.point.class + '</p>';
});
chart.xAxis.axisLabel('Code Coverage (in percent)');
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
.datum(getComplexityData([[85.106382978723,56,"<a href=\"Database.php.html#6\">DataBase<\/a>"],[100,19,"<a href=\"ManagerError.php.html#7\">ManagerError<\/a>"],[86.021505376344,46,"<a href=\"ModuleRequest.php.html#7\">ModuleRequest<\/a>"],[56.521739130435,9,"<a href=\"ModuleResponse.php.html#17\">ModuleResponse<\/a>"],[65,15,"<a href=\"Repo.php.html#17\">Repo<\/a>"],[68.65671641791,27,"<a href=\"ResourceDispatcher.php.html#8\">ResourceDispatcher<\/a>"],[57.142857142857,2,"<a href=\"module\/module.php.html#6\">module<\/a>"],[0,14,"<a href=\"repo\/parentRepo.php.html#6\">parentRepo<\/a>"],[15.384615384615,13,"<a href=\"repo\/token.php.html#7\">token<\/a>"],[6.25,11,"<a href=\"sessionManager.php.html#6\">sessionManager<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
nv.addGraph(function() {
var chart = nv.models.scatterChart()
.showDistX(true)
.showDistY(true)
.showLegend(false)
.forceX([0, 100]);
chart.scatter.onlyCircles(false);
chart.tooltipContent(function(key, y, e, graph) {
return '<p>' + graph.point.class + '</p>';
});
chart.xAxis.axisLabel('Code Coverage (in percent)');
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
.datum(getComplexityData([[88.888888888889,2,"<a href=\"Database.php.html#27\">DataBase::__construct<\/a>"],[85.714285714286,6,"<a href=\"Database.php.html#47\">DataBase::getInstance<\/a>"],[100,1,"<a href=\"Database.php.html#65\">DataBase::getPDO<\/a>"],[100,1,"<a href=\"Database.php.html#79\">DataBase::getConfig<\/a>"],[100,14,"<a href=\"Database.php.html#110\">DataBase::delNumeric<\/a>"],[96.296296296296,26,"<a href=\"Database.php.html#185\">DataBase::check<\/a>"],[100,2,"<a href=\"Database.php.html#275\">DataBase::formatNumber<\/a>"],[100,3,"<a href=\"Database.php.html#291\">DataBase::readableNumber<\/a>"],[0,1,"<a href=\"Database.php.html#312\">DataBase::frDate<\/a>"],[100,19,"<a href=\"ManagerError.php.html#80\">ManagerError::explicit<\/a>"],[90.47619047619,8,"<a href=\"ModuleRequest.php.html#36\">ModuleRequest::__construct<\/a>"],[77.777777777778,3,"<a href=\"ModuleRequest.php.html#104\">ModuleRequest::dispatch<\/a>"],[0,3,"<a href=\"ModuleRequest.php.html#144\">ModuleRequest::fromString<\/a>"],[100,3,"<a href=\"ModuleRequest.php.html#175\">ModuleRequest::fromPost<\/a>"],[100,4,"<a href=\"ModuleRequest.php.html#213\">ModuleRequest::checkPath<\/a>"],[94.736842105263,8,"<a href=\"ModuleRequest.php.html#264\">ModuleRequest::checkPermission<\/a>"],[100,16,"<a href=\"ModuleRequest.php.html#332\">ModuleRequest::checkParams<\/a>"],[100,1,"<a href=\"ModuleRequest.php.html#388\">ModuleRequest::getFunctionCaller<\/a>"],[100,1,"<a href=\"ModuleResponse.php.html#33\">ModuleResponse::__construct<\/a>"],[0,1,"<a href=\"ModuleResponse.php.html#50\">ModuleResponse::append<\/a>"],[100,3,"<a href=\"ModuleResponse.php.html#69\">ModuleResponse::appendAll<\/a>"],[100,2,"<a href=\"ModuleResponse.php.html#101\">ModuleResponse::get<\/a>"],[0,1,"<a href=\"ModuleResponse.php.html#122\">ModuleResponse::getAll<\/a>"],[0,1,"<a href=\"ModuleResponse.php.html#137\">ModuleResponse::serialize<\/a>"],[64.705882352941,6,"<a href=\"Repo.php.html#46\">Repo::__construct<\/a>"],[100,1,"<a href=\"Repo.php.html#103\">Repo::answer<\/a>"],[66.666666666667,3,"<a href=\"Repo.php.html#114\">Repo::dispatch<\/a>"],[60,4,"<a href=\"Repo.php.html#143\">Repo::checkPath<\/a>"],[100,1,"<a href=\"Repo.php.html#190\">Repo::getFunctionCaller<\/a>"],[60,6,"<a href=\"ResourceDispatcher.php.html#33\">ResourceDispatcher::__construct<\/a>"],[100,1,"<a href=\"ResourceDispatcher.php.html#99\">ResourceDispatcher::getResource<\/a>"],[100,11,"<a href=\"ResourceDispatcher.php.html#113\">ResourceDispatcher::createFlags<\/a>"],[58.823529411765,5,"<a href=\"ResourceDispatcher.php.html#176\">ResourceDispatcher::buildPath<\/a>"],[0,2,"<a href=\"ResourceDispatcher.php.html#239\">ResourceDispatcher::view<\/a>"],[100,2,"<a href=\"ResourceDispatcher.php.html#259\">ResourceDispatcher::getContent<\/a>"],[0,1,"<a href=\"module\/module.php.html#8\">module::method<\/a>"],[100,1,"<a href=\"module\/module.php.html#18\">module::phpunitParams<\/a>"],[100,1,"<a href=\"repo\/parentRepo.php.html#9\">parentRepo::table_name<\/a>"],[0,13,"<a href=\"repo\/parentRepo.php.html#22\">parentRepo::__callStatic<\/a>"],[100,1,"<a href=\"repo\/token.php.html#9\">token::table_name<\/a>"],[0,1,"<a href=\"repo\/token.php.html#35\">token::getAll<\/a>"],[85.714285714286,3,"<a href=\"repo\/token.php.html#57\">token::check<\/a>"],[0,5,"<a href=\"repo\/token.php.html#95\">token::generate<\/a>"],[0,3,"<a href=\"repo\/token.php.html#162\">token::remove<\/a>"],[100,1,"<a href=\"sessionManager.php.html#14\">sessionManager::sha1<\/a>"],[0,2,"<a href=\"sessionManager.php.html#22\">sessionManager::reset_session<\/a>"],[0,1,"<a href=\"sessionManager.php.html#46\">sessionManager::update_token<\/a>"],[0,7,"<a href=\"sessionManager.php.html#60\">sessionManager::session_start<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
function getComplexityData(data, label) {
var values = [];
$.each(data, function(key) {
var value = Math.round(data[key][0]*100) / 100;
values.push({
x: value,
y: data[key][1],
class: data[key][2],
size: 0.05,
shape: 'diamond'
});
});
return [
{
key: label,
values: values,
color: "#4572A7"
}
];
}
});
</script>
</body>
</html>