ldc-crm/tests/coverage/app/Models/dashboard.html
2023-10-06 16:37:30 +02:00

322 lines
18 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard for /home/jeremy/projets/crm/app/Models</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../_css/bootstrap.min.css?v=10.1.7" rel="stylesheet" type="text/css">
<link href="../../_css/nv.d3.min.css?v=10.1.7" rel="stylesheet" type="text/css">
<link href="../../_css/style.css?v=10.1.7" rel="stylesheet" type="text/css">
<link href="../../_css/custom.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="../../index.html">/home/jeremy/projets/crm</a></li>
<li class="breadcrumb-item"><a href="../index.html">app</a></li>
<li class="breadcrumb-item"><a href="index.html">Models</a></li>
<li class="breadcrumb-item active">(Dashboard)</li>
</ol>
</nav>
</div>
</div>
</div>
</header>
<div class="container-fluid">
<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="ActivityLog.php.html#25">App\Models\ActivityLog</a></td><td class="text-right">0%</td></tr>
<tr><td><a href="User.php.html#29">App\Models\User</a></td><td class="text-right">0%</td></tr>
<tr><td><a href="BrandStat.php.html#19">App\Models\BrandStat</a></td><td class="text-right">40%</td></tr>
<tr><td><a href="Brand.php.html#27">App\Models\Brand</a></td><td class="text-right">61%</td></tr>
<tr><td><a href="Service.php.html#31">App\Models\Service</a></td><td class="text-right">74%</td></tr>
<tr><td><a href="CustomerInfo.php.html#32">App\Models\CustomerInfo</a></td><td class="text-right">80%</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="User.php.html#29">App\Models\User</a></td><td class="text-right">56</td></tr>
<tr><td><a href="ActivityLog.php.html#25">App\Models\ActivityLog</a></td><td class="text-right">42</td></tr>
<tr><td><a href="Service.php.html#31">App\Models\Service</a></td><td class="text-right">20</td></tr>
<tr><td><a href="BrandStat.php.html#19">App\Models\BrandStat</a></td><td class="text-right">4</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="ActivityLog.php.html#72"><abbr title="App\Models\ActivityLog::addActivity">addActivity</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ActivityLog.php.html#101"><abbr title="App\Models\ActivityLog::getChangedColumns">getChangedColumns</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="ActivityLog.php.html#129"><abbr title="App\Models\ActivityLog::user">user</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Brand.php.html#124"><abbr title="App\Models\Brand::customerInfos">customerInfos</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Brand.php.html#134"><abbr title="App\Models\Brand::servicesStats">servicesStats</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Brand.php.html#144"><abbr title="App\Models\Brand::singleOptins">singleOptins</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Brand.php.html#156"><abbr title="App\Models\Brand::getAccountsAttribute">getAccountsAttribute</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Brand.php.html#166"><abbr title="App\Models\Brand::getTotalOptinsAttribute">getTotalOptinsAttribute</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="BrandStat.php.html#72"><abbr title="App\Models\BrandStat::brand">brand</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="CustomerInfo.php.html#112"><abbr title="App\Models\CustomerInfo::login">login</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="CustomerInfo.php.html#140"><abbr title="App\Models\CustomerInfo::getFromHashcode">getFromHashcode</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Service.php.html#117"><abbr title="App\Models\Service::servicesStats">servicesStats</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Service.php.html#144"><abbr title="App\Models\Service::generateBearerToken">generateBearerToken</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="Service.php.html#158"><abbr title="App\Models\Service::generateBearerPassword">generateBearerPassword</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="User.php.html#76"><abbr title="App\Models\User::booted">booted</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="User.php.html#111"><abbr title="App\Models\User::updatePassword">updatePassword</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="User.php.html#125"><abbr title="App\Models\User::activityLogs">activityLogs</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="BrandStat.php.html#56"><abbr title="App\Models\BrandStat::booted">booted</abbr></a></td><td class="text-right">50%</td></tr>
<tr><td><a href="Service.php.html#80"><abbr title="App\Models\Service::booted">booted</abbr></a></td><td class="text-right">61%</td></tr>
<tr><td><a href="Brand.php.html#81"><abbr title="App\Models\Brand::booted">booted</abbr></a></td><td class="text-right">66%</td></tr>
<tr><td><a href="Customer.php.html#174"><abbr title="App\Models\Customer::loadBrandData">loadBrandData</abbr></a></td><td class="text-right">84%</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="User.php.html#76"><abbr title="App\Models\User::booted">booted</abbr></a></td><td class="text-right">20</td></tr>
<tr><td><a href="ActivityLog.php.html#101"><abbr title="App\Models\ActivityLog::getChangedColumns">getChangedColumns</abbr></a></td><td class="text-right">12</td></tr>
<tr><td><a href="ActivityLog.php.html#72"><abbr title="App\Models\ActivityLog::addActivity">addActivity</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="User.php.html#111"><abbr title="App\Models\User::updatePassword">updatePassword</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="Customer.php.html#174"><abbr title="App\Models\Customer::loadBrandData">loadBrandData</abbr></a></td><td class="text-right">5</td></tr>
<tr><td><a href="BrandStat.php.html#56"><abbr title="App\Models\BrandStat::booted">booted</abbr></a></td><td class="text-right">2</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<footer>
<hr/>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.7</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.10</a> and <a href="https://phpunit.de/">PHPUnit 10.4.0</a> at Fri Oct 6 15:56:10 CEST 2023.</small>
</p>
</footer>
</div>
<script src="../../_js/jquery.min.js?v=10.1.7" type="text/javascript"></script>
<script src="../../_js/d3.min.js?v=10.1.7" type="text/javascript"></script>
<script src="../../_js/nv.d3.min.js?v=10.1.7" 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([2,0,0,0,0,1,0,1,1,1,1,7], "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([17,0,0,0,0,0,1,2,0,1,3,37], "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.tooltipContent(function(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([[0,6,"<a href=\"ActivityLog.php.html#25\">App\\Models\\ActivityLog<\/a>"],[100,2,"<a href=\"Answer.php.html#19\">App\\Models\\Answer<\/a>"],[61.904761904761905,10,"<a href=\"Brand.php.html#27\">App\\Models\\Brand<\/a>"],[40,3,"<a href=\"BrandStat.php.html#19\">App\\Models\\BrandStat<\/a>"],[93.22033898305084,24,"<a href=\"Customer.php.html#29\">App\\Models\\Customer<\/a>"],[100,3,"<a href=\"CustomerAnswer.php.html#15\">App\\Models\\CustomerAnswer<\/a>"],[80.95238095238095,6,"<a href=\"CustomerInfo.php.html#32\">App\\Models\\CustomerInfo<\/a>"],[100,6,"<a href=\"CustomerLogin.php.html#22\">App\\Models\\CustomerLogin<\/a>"],[100,2,"<a href=\"CustomerOptInHistory.php.html#19\">App\\Models\\CustomerOptInHistory<\/a>"],[100,2,"<a href=\"Question.php.html#21\">App\\Models\\Question<\/a>"],[74.50980392156863,16,"<a href=\"Service.php.html#31\">App\\Models\\Service<\/a>"],[100,2,"<a href=\"ServiceStat.php.html#20\">App\\Models\\ServiceStat<\/a>"],[100,2,"<a href=\"SingleOptin.php.html#18\">App\\Models\\SingleOptin<\/a>"],[0,7,"<a href=\"User.php.html#29\">App\\Models\\User<\/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.tooltipContent(function(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([[0,2,"<a href=\"ActivityLog.php.html#72\">App\\Models\\ActivityLog::addActivity<\/a>"],[0,3,"<a href=\"ActivityLog.php.html#101\">App\\Models\\ActivityLog::getChangedColumns<\/a>"],[0,1,"<a href=\"ActivityLog.php.html#129\">App\\Models\\ActivityLog::user<\/a>"],[100,1,"<a href=\"Answer.php.html#39\">App\\Models\\Answer::question<\/a>"],[100,1,"<a href=\"Answer.php.html#49\">App\\Models\\Answer::customers<\/a>"],[100,1,"<a href=\"Brand.php.html#54\">App\\Models\\Brand::__construct<\/a>"],[100,1,"<a href=\"Brand.php.html#69\">App\\Models\\Brand::getCacheBaseTags<\/a>"],[66.66666666666666,1,"<a href=\"Brand.php.html#81\">App\\Models\\Brand::booted<\/a>"],[100,1,"<a href=\"Brand.php.html#104\">App\\Models\\Brand::services<\/a>"],[100,1,"<a href=\"Brand.php.html#114\">App\\Models\\Brand::questions<\/a>"],[0,1,"<a href=\"Brand.php.html#124\">App\\Models\\Brand::customerInfos<\/a>"],[0,1,"<a href=\"Brand.php.html#134\">App\\Models\\Brand::servicesStats<\/a>"],[0,1,"<a href=\"Brand.php.html#144\">App\\Models\\Brand::singleOptins<\/a>"],[0,1,"<a href=\"Brand.php.html#156\">App\\Models\\Brand::getAccountsAttribute<\/a>"],[0,1,"<a href=\"Brand.php.html#166\">App\\Models\\Brand::getTotalOptinsAttribute<\/a>"],[50,2,"<a href=\"BrandStat.php.html#56\">App\\Models\\BrandStat::booted<\/a>"],[0,1,"<a href=\"BrandStat.php.html#72\">App\\Models\\BrandStat::brand<\/a>"],[100,1,"<a href=\"Customer.php.html#53\">App\\Models\\Customer::infos<\/a>"],[100,1,"<a href=\"Customer.php.html#63\">App\\Models\\Customer::logins<\/a>"],[100,1,"<a href=\"Customer.php.html#73\">App\\Models\\Customer::optInHistory<\/a>"],[100,1,"<a href=\"Customer.php.html#83\">App\\Models\\Customer::brands<\/a>"],[100,1,"<a href=\"Customer.php.html#93\">App\\Models\\Customer::answers<\/a>"],[92.85714285714286,6,"<a href=\"Customer.php.html#109\">App\\Models\\Customer::info<\/a>"],[92.85714285714286,6,"<a href=\"Customer.php.html#142\">App\\Models\\Customer::login<\/a>"],[84.61538461538461,5,"<a href=\"Customer.php.html#174\">App\\Models\\Customer::loadBrandData<\/a>"],[100,1,"<a href=\"Customer.php.html#201\">App\\Models\\Customer::setOptIn<\/a>"],[100,1,"<a href=\"Customer.php.html#220\">App\\Models\\Customer::getAnswers<\/a>"],[100,1,"<a href=\"CustomerAnswer.php.html#23\">App\\Models\\CustomerAnswer::getUpdatedAtColumn<\/a>"],[100,1,"<a href=\"CustomerAnswer.php.html#35\">App\\Models\\CustomerAnswer::customer<\/a>"],[100,1,"<a href=\"CustomerAnswer.php.html#45\">App\\Models\\CustomerAnswer::answer<\/a>"],[100,1,"<a href=\"CustomerInfo.php.html#69\">App\\Models\\CustomerInfo::booted<\/a>"],[100,1,"<a href=\"CustomerInfo.php.html#90\">App\\Models\\CustomerInfo::customer<\/a>"],[100,1,"<a href=\"CustomerInfo.php.html#100\">App\\Models\\CustomerInfo::brand<\/a>"],[0,1,"<a href=\"CustomerInfo.php.html#112\">App\\Models\\CustomerInfo::login<\/a>"],[100,1,"<a href=\"CustomerInfo.php.html#124\">App\\Models\\CustomerInfo::getFromEmail<\/a>"],[0,1,"<a href=\"CustomerInfo.php.html#140\">App\\Models\\CustomerInfo::getFromHashcode<\/a>"],[100,3,"<a href=\"CustomerLogin.php.html#59\">App\\Models\\CustomerLogin::booted<\/a>"],[100,1,"<a href=\"CustomerLogin.php.html#80\">App\\Models\\CustomerLogin::customer<\/a>"],[100,1,"<a href=\"CustomerLogin.php.html#90\">App\\Models\\CustomerLogin::brand<\/a>"],[100,1,"<a href=\"CustomerLogin.php.html#103\">App\\Models\\CustomerLogin::passwordMatch<\/a>"],[100,1,"<a href=\"CustomerOptInHistory.php.html#46\">App\\Models\\CustomerOptInHistory::customer<\/a>"],[100,1,"<a href=\"CustomerOptInHistory.php.html#56\">App\\Models\\CustomerOptInHistory::brand<\/a>"],[100,1,"<a href=\"Question.php.html#53\">App\\Models\\Question::brand<\/a>"],[100,1,"<a href=\"Question.php.html#63\">App\\Models\\Question::answers<\/a>"],[100,1,"<a href=\"Service.php.html#68\">App\\Models\\Service::__construct<\/a>"],[61.53846153846154,1,"<a href=\"Service.php.html#80\">App\\Models\\Service::booted<\/a>"],[100,1,"<a href=\"Service.php.html#107\">App\\Models\\Service::brand<\/a>"],[0,1,"<a href=\"Service.php.html#117\">App\\Models\\Service::servicesStats<\/a>"],[100,1,"<a href=\"Service.php.html#132\">App\\Models\\Service::getCacheBaseTags<\/a>"],[0,1,"<a href=\"Service.php.html#144\">App\\Models\\Service::generateBearerToken<\/a>"],[0,1,"<a href=\"Service.php.html#158\">App\\Models\\Service::generateBearerPassword<\/a>"],[100,1,"<a href=\"Service.php.html#170\">App\\Models\\Service::incrementStat<\/a>"],[92.3076923076923,5,"<a href=\"Service.php.html#183\">App\\Models\\Service::getFromBearerToken<\/a>"],[100,3,"<a href=\"Service.php.html#239\">App\\Models\\Service::authenticateApi<\/a>"],[100,1,"<a href=\"ServiceStat.php.html#58\">App\\Models\\ServiceStat::brand<\/a>"],[100,1,"<a href=\"ServiceStat.php.html#68\">App\\Models\\ServiceStat::service<\/a>"],[100,1,"<a href=\"SingleOptin.php.html#57\">App\\Models\\SingleOptin::booted<\/a>"],[100,1,"<a href=\"SingleOptin.php.html#71\">App\\Models\\SingleOptin::brand<\/a>"],[0,4,"<a href=\"User.php.html#76\">App\\Models\\User::booted<\/a>"],[0,2,"<a href=\"User.php.html#111\">App\\Models\\User::updatePassword<\/a>"],[0,1,"<a href=\"User.php.html#125\">App\\Models\\User::activityLogs<\/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>