ability to run tests in typescript
This commit is contained in:
parent
fbfe0356ee
commit
d3f4f7560a
|
@ -0,0 +1,6 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
['@babel/preset-env', {targets: {node: 'current'}}],
|
||||||
|
'@babel/preset-typescript',
|
||||||
|
],
|
||||||
|
};
|
|
@ -1,6 +1,255 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<coverage generated="1690835538708" clover="3.2.0">
|
<coverage generated="1691223461793" clover="3.2.0">
|
||||||
<project timestamp="1690835538709" name="All files">
|
<project timestamp="1691223461793" name="All files">
|
||||||
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
|
<metrics statements="237" coveredstatements="110" conditionals="6" coveredconditionals="4" methods="9" coveredmethods="4" elements="252" coveredelements="118" complexity="0" loc="237" ncloc="237" packages="2" files="2" classes="2"/>
|
||||||
|
<package name="data_other.testing">
|
||||||
|
<metrics statements="34" coveredstatements="34" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
||||||
|
<file name="mappings_to_test.ts" path="/home/poule/encrypted/stockage-syncable/www/development/html/scripts/mapping_geojson_to_osm_tags/data_other/testing/mappings_to_test.ts">
|
||||||
|
<metrics statements="34" coveredstatements="34" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
||||||
|
<line num="1" count="1" type="stmt"/>
|
||||||
|
<line num="2" count="1" type="stmt"/>
|
||||||
|
<line num="3" count="1" type="stmt"/>
|
||||||
|
<line num="4" count="1" type="stmt"/>
|
||||||
|
<line num="5" count="1" type="stmt"/>
|
||||||
|
<line num="6" count="1" type="stmt"/>
|
||||||
|
<line num="7" count="1" type="stmt"/>
|
||||||
|
<line num="8" count="1" type="stmt"/>
|
||||||
|
<line num="9" count="1" type="stmt"/>
|
||||||
|
<line num="10" count="1" type="stmt"/>
|
||||||
|
<line num="11" count="1" type="stmt"/>
|
||||||
|
<line num="12" count="1" type="stmt"/>
|
||||||
|
<line num="13" count="1" type="stmt"/>
|
||||||
|
<line num="14" count="1" type="stmt"/>
|
||||||
|
<line num="15" count="1" type="stmt"/>
|
||||||
|
<line num="16" count="1" type="stmt"/>
|
||||||
|
<line num="17" count="1" type="stmt"/>
|
||||||
|
<line num="18" count="1" type="stmt"/>
|
||||||
|
<line num="19" count="1" type="stmt"/>
|
||||||
|
<line num="20" count="1" type="stmt"/>
|
||||||
|
<line num="21" count="1" type="stmt"/>
|
||||||
|
<line num="22" count="1" type="stmt"/>
|
||||||
|
<line num="23" count="1" type="stmt"/>
|
||||||
|
<line num="24" count="1" type="stmt"/>
|
||||||
|
<line num="25" count="1" type="stmt"/>
|
||||||
|
<line num="26" count="1" type="stmt"/>
|
||||||
|
<line num="27" count="1" type="stmt"/>
|
||||||
|
<line num="28" count="1" type="stmt"/>
|
||||||
|
<line num="29" count="1" type="stmt"/>
|
||||||
|
<line num="30" count="1" type="stmt"/>
|
||||||
|
<line num="31" count="1" type="stmt"/>
|
||||||
|
<line num="32" count="1" type="stmt"/>
|
||||||
|
<line num="33" count="1" type="stmt"/>
|
||||||
|
<line num="34" count="1" type="stmt"/>
|
||||||
|
</file>
|
||||||
|
</package>
|
||||||
|
<package name="mappings">
|
||||||
|
<metrics statements="203" coveredstatements="76" conditionals="6" coveredconditionals="4" methods="9" coveredmethods="4"/>
|
||||||
|
<file name="engine.ts" path="/home/poule/encrypted/stockage-syncable/www/development/html/scripts/mapping_geojson_to_osm_tags/mappings/engine.ts">
|
||||||
|
<metrics statements="203" coveredstatements="76" conditionals="6" coveredconditionals="4" methods="9" coveredmethods="4"/>
|
||||||
|
<line num="1" count="1" type="stmt"/>
|
||||||
|
<line num="2" count="1" type="stmt"/>
|
||||||
|
<line num="3" count="1" type="stmt"/>
|
||||||
|
<line num="4" count="1" type="stmt"/>
|
||||||
|
<line num="5" count="1" type="stmt"/>
|
||||||
|
<line num="6" count="1" type="stmt"/>
|
||||||
|
<line num="7" count="1" type="stmt"/>
|
||||||
|
<line num="8" count="1" type="stmt"/>
|
||||||
|
<line num="9" count="1" type="stmt"/>
|
||||||
|
<line num="10" count="1" type="stmt"/>
|
||||||
|
<line num="11" count="1" type="stmt"/>
|
||||||
|
<line num="12" count="1" type="stmt"/>
|
||||||
|
<line num="13" count="1" type="stmt"/>
|
||||||
|
<line num="14" count="1" type="stmt"/>
|
||||||
|
<line num="15" count="1" type="stmt"/>
|
||||||
|
<line num="16" count="1" type="cond" truecount="1" falsecount="0"/>
|
||||||
|
<line num="17" count="1" type="stmt"/>
|
||||||
|
<line num="18" count="1" type="stmt"/>
|
||||||
|
<line num="19" count="1" type="cond" truecount="1" falsecount="0"/>
|
||||||
|
<line num="20" count="1" type="stmt"/>
|
||||||
|
<line num="21" count="1" type="stmt"/>
|
||||||
|
<line num="22" count="1" type="stmt"/>
|
||||||
|
<line num="23" count="1" type="cond" truecount="1" falsecount="0"/>
|
||||||
|
<line num="24" count="1" type="stmt"/>
|
||||||
|
<line num="25" count="1" type="stmt"/>
|
||||||
|
<line num="26" count="1" type="stmt"/>
|
||||||
|
<line num="27" count="1" type="stmt"/>
|
||||||
|
<line num="28" count="0" type="stmt"/>
|
||||||
|
<line num="29" count="0" type="stmt"/>
|
||||||
|
<line num="30" count="0" type="stmt"/>
|
||||||
|
<line num="31" count="0" type="stmt"/>
|
||||||
|
<line num="32" count="0" type="stmt"/>
|
||||||
|
<line num="33" count="0" type="stmt"/>
|
||||||
|
<line num="34" count="0" type="stmt"/>
|
||||||
|
<line num="35" count="0" type="stmt"/>
|
||||||
|
<line num="36" count="0" type="stmt"/>
|
||||||
|
<line num="37" count="0" type="stmt"/>
|
||||||
|
<line num="38" count="0" type="stmt"/>
|
||||||
|
<line num="39" count="0" type="stmt"/>
|
||||||
|
<line num="40" count="0" type="stmt"/>
|
||||||
|
<line num="41" count="0" type="stmt"/>
|
||||||
|
<line num="42" count="1" type="stmt"/>
|
||||||
|
<line num="43" count="1" type="stmt"/>
|
||||||
|
<line num="44" count="1" type="stmt"/>
|
||||||
|
<line num="45" count="1" type="stmt"/>
|
||||||
|
<line num="46" count="1" type="stmt"/>
|
||||||
|
<line num="47" count="1" type="stmt"/>
|
||||||
|
<line num="48" count="1" type="stmt"/>
|
||||||
|
<line num="49" count="0" type="stmt"/>
|
||||||
|
<line num="50" count="0" type="stmt"/>
|
||||||
|
<line num="51" count="0" type="stmt"/>
|
||||||
|
<line num="52" count="1" type="stmt"/>
|
||||||
|
<line num="53" count="1" type="stmt"/>
|
||||||
|
<line num="54" count="1" type="stmt"/>
|
||||||
|
<line num="55" count="1" type="stmt"/>
|
||||||
|
<line num="56" count="1" type="stmt"/>
|
||||||
|
<line num="57" count="1" type="stmt"/>
|
||||||
|
<line num="58" count="1" type="stmt"/>
|
||||||
|
<line num="59" count="1" type="stmt"/>
|
||||||
|
<line num="60" count="1" type="stmt"/>
|
||||||
|
<line num="61" count="1" type="stmt"/>
|
||||||
|
<line num="62" count="0" type="stmt"/>
|
||||||
|
<line num="63" count="0" type="stmt"/>
|
||||||
|
<line num="64" count="0" type="stmt"/>
|
||||||
|
<line num="65" count="0" type="stmt"/>
|
||||||
|
<line num="66" count="1" type="stmt"/>
|
||||||
|
<line num="67" count="1" type="stmt"/>
|
||||||
|
<line num="68" count="1" type="stmt"/>
|
||||||
|
<line num="69" count="1" type="stmt"/>
|
||||||
|
<line num="70" count="1" type="stmt"/>
|
||||||
|
<line num="71" count="1" type="stmt"/>
|
||||||
|
<line num="72" count="1" type="stmt"/>
|
||||||
|
<line num="73" count="1" type="stmt"/>
|
||||||
|
<line num="74" count="1" type="stmt"/>
|
||||||
|
<line num="75" count="0" type="stmt"/>
|
||||||
|
<line num="76" count="0" type="stmt"/>
|
||||||
|
<line num="77" count="0" type="stmt"/>
|
||||||
|
<line num="78" count="0" type="stmt"/>
|
||||||
|
<line num="79" count="0" type="stmt"/>
|
||||||
|
<line num="80" count="1" type="stmt"/>
|
||||||
|
<line num="81" count="1" type="stmt"/>
|
||||||
|
<line num="82" count="1" type="stmt"/>
|
||||||
|
<line num="83" count="1" type="stmt"/>
|
||||||
|
<line num="84" count="1" type="cond" truecount="1" falsecount="0"/>
|
||||||
|
<line num="85" count="1" type="cond" truecount="0" falsecount="1"/>
|
||||||
|
<line num="86" count="0" type="stmt"/>
|
||||||
|
<line num="87" count="0" type="stmt"/>
|
||||||
|
<line num="88" count="0" type="stmt"/>
|
||||||
|
<line num="89" count="1" type="stmt"/>
|
||||||
|
<line num="90" count="1" type="stmt"/>
|
||||||
|
<line num="91" count="1" type="stmt"/>
|
||||||
|
<line num="92" count="1" type="stmt"/>
|
||||||
|
<line num="93" count="1" type="stmt"/>
|
||||||
|
<line num="94" count="1" type="stmt"/>
|
||||||
|
<line num="95" count="1" type="stmt"/>
|
||||||
|
<line num="96" count="1" type="stmt"/>
|
||||||
|
<line num="97" count="1" type="stmt"/>
|
||||||
|
<line num="98" count="1" type="stmt"/>
|
||||||
|
<line num="99" count="1" type="stmt"/>
|
||||||
|
<line num="100" count="1" type="stmt"/>
|
||||||
|
<line num="101" count="1" type="cond" truecount="0" falsecount="1"/>
|
||||||
|
<line num="102" count="0" type="stmt"/>
|
||||||
|
<line num="103" count="0" type="stmt"/>
|
||||||
|
<line num="104" count="0" type="stmt"/>
|
||||||
|
<line num="105" count="0" type="stmt"/>
|
||||||
|
<line num="106" count="0" type="stmt"/>
|
||||||
|
<line num="107" count="0" type="stmt"/>
|
||||||
|
<line num="108" count="0" type="stmt"/>
|
||||||
|
<line num="109" count="0" type="stmt"/>
|
||||||
|
<line num="110" count="0" type="stmt"/>
|
||||||
|
<line num="111" count="0" type="stmt"/>
|
||||||
|
<line num="112" count="0" type="stmt"/>
|
||||||
|
<line num="113" count="0" type="stmt"/>
|
||||||
|
<line num="114" count="0" type="stmt"/>
|
||||||
|
<line num="115" count="0" type="stmt"/>
|
||||||
|
<line num="116" count="0" type="stmt"/>
|
||||||
|
<line num="117" count="0" type="stmt"/>
|
||||||
|
<line num="118" count="0" type="stmt"/>
|
||||||
|
<line num="119" count="1" type="stmt"/>
|
||||||
|
<line num="120" count="1" type="stmt"/>
|
||||||
|
<line num="121" count="0" type="stmt"/>
|
||||||
|
<line num="122" count="0" type="stmt"/>
|
||||||
|
<line num="123" count="0" type="stmt"/>
|
||||||
|
<line num="124" count="0" type="stmt"/>
|
||||||
|
<line num="125" count="0" type="stmt"/>
|
||||||
|
<line num="126" count="0" type="stmt"/>
|
||||||
|
<line num="127" count="0" type="stmt"/>
|
||||||
|
<line num="128" count="0" type="stmt"/>
|
||||||
|
<line num="129" count="0" type="stmt"/>
|
||||||
|
<line num="130" count="0" type="stmt"/>
|
||||||
|
<line num="131" count="0" type="stmt"/>
|
||||||
|
<line num="132" count="0" type="stmt"/>
|
||||||
|
<line num="133" count="0" type="stmt"/>
|
||||||
|
<line num="134" count="0" type="stmt"/>
|
||||||
|
<line num="135" count="0" type="stmt"/>
|
||||||
|
<line num="136" count="0" type="stmt"/>
|
||||||
|
<line num="137" count="0" type="stmt"/>
|
||||||
|
<line num="138" count="0" type="stmt"/>
|
||||||
|
<line num="139" count="0" type="stmt"/>
|
||||||
|
<line num="140" count="0" type="stmt"/>
|
||||||
|
<line num="141" count="0" type="stmt"/>
|
||||||
|
<line num="142" count="0" type="stmt"/>
|
||||||
|
<line num="143" count="0" type="stmt"/>
|
||||||
|
<line num="144" count="0" type="stmt"/>
|
||||||
|
<line num="145" count="0" type="stmt"/>
|
||||||
|
<line num="146" count="0" type="stmt"/>
|
||||||
|
<line num="147" count="0" type="stmt"/>
|
||||||
|
<line num="148" count="0" type="stmt"/>
|
||||||
|
<line num="149" count="0" type="stmt"/>
|
||||||
|
<line num="150" count="0" type="stmt"/>
|
||||||
|
<line num="151" count="0" type="stmt"/>
|
||||||
|
<line num="152" count="0" type="stmt"/>
|
||||||
|
<line num="153" count="0" type="stmt"/>
|
||||||
|
<line num="154" count="0" type="stmt"/>
|
||||||
|
<line num="155" count="0" type="stmt"/>
|
||||||
|
<line num="156" count="0" type="stmt"/>
|
||||||
|
<line num="157" count="0" type="stmt"/>
|
||||||
|
<line num="158" count="0" type="stmt"/>
|
||||||
|
<line num="159" count="0" type="stmt"/>
|
||||||
|
<line num="160" count="0" type="stmt"/>
|
||||||
|
<line num="161" count="0" type="stmt"/>
|
||||||
|
<line num="162" count="0" type="stmt"/>
|
||||||
|
<line num="163" count="0" type="stmt"/>
|
||||||
|
<line num="164" count="0" type="stmt"/>
|
||||||
|
<line num="165" count="0" type="stmt"/>
|
||||||
|
<line num="166" count="0" type="stmt"/>
|
||||||
|
<line num="167" count="0" type="stmt"/>
|
||||||
|
<line num="168" count="0" type="stmt"/>
|
||||||
|
<line num="169" count="0" type="stmt"/>
|
||||||
|
<line num="170" count="0" type="stmt"/>
|
||||||
|
<line num="171" count="0" type="stmt"/>
|
||||||
|
<line num="172" count="0" type="stmt"/>
|
||||||
|
<line num="173" count="0" type="stmt"/>
|
||||||
|
<line num="174" count="0" type="stmt"/>
|
||||||
|
<line num="175" count="0" type="stmt"/>
|
||||||
|
<line num="176" count="0" type="stmt"/>
|
||||||
|
<line num="177" count="0" type="stmt"/>
|
||||||
|
<line num="178" count="0" type="stmt"/>
|
||||||
|
<line num="179" count="0" type="stmt"/>
|
||||||
|
<line num="180" count="0" type="stmt"/>
|
||||||
|
<line num="181" count="0" type="stmt"/>
|
||||||
|
<line num="182" count="0" type="stmt"/>
|
||||||
|
<line num="183" count="0" type="stmt"/>
|
||||||
|
<line num="184" count="0" type="stmt"/>
|
||||||
|
<line num="185" count="0" type="stmt"/>
|
||||||
|
<line num="186" count="0" type="stmt"/>
|
||||||
|
<line num="187" count="0" type="stmt"/>
|
||||||
|
<line num="188" count="0" type="stmt"/>
|
||||||
|
<line num="189" count="0" type="stmt"/>
|
||||||
|
<line num="190" count="0" type="stmt"/>
|
||||||
|
<line num="191" count="0" type="stmt"/>
|
||||||
|
<line num="192" count="0" type="stmt"/>
|
||||||
|
<line num="193" count="0" type="stmt"/>
|
||||||
|
<line num="194" count="0" type="stmt"/>
|
||||||
|
<line num="195" count="0" type="stmt"/>
|
||||||
|
<line num="196" count="0" type="stmt"/>
|
||||||
|
<line num="197" count="0" type="stmt"/>
|
||||||
|
<line num="198" count="0" type="stmt"/>
|
||||||
|
<line num="199" count="0" type="stmt"/>
|
||||||
|
<line num="200" count="0" type="stmt"/>
|
||||||
|
<line num="201" count="0" type="stmt"/>
|
||||||
|
<line num="202" count="1" type="stmt"/>
|
||||||
|
<line num="203" count="1" type="stmt"/>
|
||||||
|
</file>
|
||||||
|
</package>
|
||||||
</project>
|
</project>
|
||||||
</coverage>
|
</coverage>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,116 @@
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for data_other/testing</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../../base.css" />
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1><a href="../../index.html">All files</a> data_other/testing</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>34/34</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>0/0</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>0/0</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>34/34</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<p class="quiet">
|
||||||
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||||
|
</p>
|
||||||
|
<template id="filterTemplate">
|
||||||
|
<div class="quiet">
|
||||||
|
Filter:
|
||||||
|
<input oninput="onInput()" type="search" id="fileSearch">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class='status-line high'></div>
|
||||||
|
<div class="pad1">
|
||||||
|
<table class="coverage-summary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||||
|
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||||
|
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||||
|
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||||
|
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||||
|
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||||
|
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr>
|
||||||
|
<td class="file high" data-value="mappings_to_test.ts"><a href="mappings_to_test.ts.html">mappings_to_test.ts</a></td>
|
||||||
|
<td data-value="100" class="pic high">
|
||||||
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||||
|
</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="34" class="abs high">34/34</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="0" class="abs high">0/0</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="0" class="abs high">0/0</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="34" class="abs high">34/34</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage generated by
|
||||||
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||||
|
at 2023-08-05T08:17:41.788Z
|
||||||
|
</div>
|
||||||
|
<script src="../../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
prettyPrint();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../../sorter.js"></script>
|
||||||
|
<script src="../../block-navigation.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1,184 @@
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for data_other/testing/mappings_to_test.ts</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../../base.css" />
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1><a href="../../index.html">All files</a> / <a href="index.html">data_other/testing</a> mappings_to_test.ts</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>34/34</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>0/0</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>0/0</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">100% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>34/34</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<p class="quiet">
|
||||||
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||||
|
</p>
|
||||||
|
<template id="filterTemplate">
|
||||||
|
<div class="quiet">
|
||||||
|
Filter:
|
||||||
|
<input oninput="onInput()" type="search" id="fileSearch">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class='status-line high'></div>
|
||||||
|
<pre><table class="coverage">
|
||||||
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
||||||
|
<a name='L2'></a><a href='#L2'>2</a>
|
||||||
|
<a name='L3'></a><a href='#L3'>3</a>
|
||||||
|
<a name='L4'></a><a href='#L4'>4</a>
|
||||||
|
<a name='L5'></a><a href='#L5'>5</a>
|
||||||
|
<a name='L6'></a><a href='#L6'>6</a>
|
||||||
|
<a name='L7'></a><a href='#L7'>7</a>
|
||||||
|
<a name='L8'></a><a href='#L8'>8</a>
|
||||||
|
<a name='L9'></a><a href='#L9'>9</a>
|
||||||
|
<a name='L10'></a><a href='#L10'>10</a>
|
||||||
|
<a name='L11'></a><a href='#L11'>11</a>
|
||||||
|
<a name='L12'></a><a href='#L12'>12</a>
|
||||||
|
<a name='L13'></a><a href='#L13'>13</a>
|
||||||
|
<a name='L14'></a><a href='#L14'>14</a>
|
||||||
|
<a name='L15'></a><a href='#L15'>15</a>
|
||||||
|
<a name='L16'></a><a href='#L16'>16</a>
|
||||||
|
<a name='L17'></a><a href='#L17'>17</a>
|
||||||
|
<a name='L18'></a><a href='#L18'>18</a>
|
||||||
|
<a name='L19'></a><a href='#L19'>19</a>
|
||||||
|
<a name='L20'></a><a href='#L20'>20</a>
|
||||||
|
<a name='L21'></a><a href='#L21'>21</a>
|
||||||
|
<a name='L22'></a><a href='#L22'>22</a>
|
||||||
|
<a name='L23'></a><a href='#L23'>23</a>
|
||||||
|
<a name='L24'></a><a href='#L24'>24</a>
|
||||||
|
<a name='L25'></a><a href='#L25'>25</a>
|
||||||
|
<a name='L26'></a><a href='#L26'>26</a>
|
||||||
|
<a name='L27'></a><a href='#L27'>27</a>
|
||||||
|
<a name='L28'></a><a href='#L28'>28</a>
|
||||||
|
<a name='L29'></a><a href='#L29'>29</a>
|
||||||
|
<a name='L30'></a><a href='#L30'>30</a>
|
||||||
|
<a name='L31'></a><a href='#L31'>31</a>
|
||||||
|
<a name='L32'></a><a href='#L32'>32</a>
|
||||||
|
<a name='L33'></a><a href='#L33'>33</a>
|
||||||
|
<a name='L34'></a><a href='#L34'>34</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span></td><td class="text"><pre class="prettyprint lang-js">import MappingConfigType from "../../mappings/mapping-config.type";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* configurations de mapping pour les cas de tests
|
||||||
|
*/
|
||||||
|
export const mappingRemoveAll: MappingConfigType = {
|
||||||
|
config_name: 'testing config',
|
||||||
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
||||||
|
default_properties_of_point: {
|
||||||
|
'amenity': 'charging_station'
|
||||||
|
},
|
||||||
|
tags: {
|
||||||
|
nom_amenageur: {
|
||||||
|
key_converted: 'autre_nom_amenageur',
|
||||||
|
conditional_values: {
|
||||||
|
'Accessibilité inconnue': {
|
||||||
|
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à Accessibilité inconnue.
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export const mappingIgnore: MappingConfigType = {
|
||||||
|
config_name: 'testing config',
|
||||||
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
||||||
|
default_properties_of_point: {
|
||||||
|
'amenity': 'charging_station'
|
||||||
|
},
|
||||||
|
tags: {
|
||||||
|
nom_amenageur: {
|
||||||
|
ignore_this_data: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}</pre></td></tr></table></pre>
|
||||||
|
|
||||||
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage generated by
|
||||||
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||||
|
at 2023-08-05T08:17:41.788Z
|
||||||
|
</div>
|
||||||
|
<script src="../../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
prettyPrint();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../../sorter.js"></script>
|
||||||
|
<script src="../../block-navigation.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -23,30 +23,30 @@
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
|
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">Unknown% </span>
|
<span class="strong">46.41% </span>
|
||||||
<span class="quiet">Statements</span>
|
<span class="quiet">Statements</span>
|
||||||
<span class='fraction'>0/0</span>
|
<span class='fraction'>110/237</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">Unknown% </span>
|
<span class="strong">66.66% </span>
|
||||||
<span class="quiet">Branches</span>
|
<span class="quiet">Branches</span>
|
||||||
<span class='fraction'>0/0</span>
|
<span class='fraction'>4/6</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">Unknown% </span>
|
<span class="strong">44.44% </span>
|
||||||
<span class="quiet">Functions</span>
|
<span class="quiet">Functions</span>
|
||||||
<span class='fraction'>0/0</span>
|
<span class='fraction'>4/9</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">Unknown% </span>
|
<span class="strong">46.41% </span>
|
||||||
<span class="quiet">Lines</span>
|
<span class="quiet">Lines</span>
|
||||||
<span class='fraction'>0/0</span>
|
<span class='fraction'>110/237</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<div class="pad1">
|
<div class="pad1">
|
||||||
<table class="coverage-summary">
|
<table class="coverage-summary">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -78,7 +78,37 @@
|
||||||
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody><tr>
|
||||||
|
<td class="file high" data-value="data_other/testing"><a href="data_other/testing/index.html">data_other/testing</a></td>
|
||||||
|
<td data-value="100" class="pic high">
|
||||||
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||||
|
</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="34" class="abs high">34/34</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="0" class="abs high">0/0</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="0" class="abs high">0/0</td>
|
||||||
|
<td data-value="100" class="pct high">100%</td>
|
||||||
|
<td data-value="34" class="abs high">34/34</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="file low" data-value="mappings"><a href="mappings/index.html">mappings</a></td>
|
||||||
|
<td data-value="37.43" class="pic low">
|
||||||
|
<div class="chart"><div class="cover-fill" style="width: 37%"></div><div class="cover-empty" style="width: 63%"></div></div>
|
||||||
|
</td>
|
||||||
|
<td data-value="37.43" class="pct low">37.43%</td>
|
||||||
|
<td data-value="203" class="abs low">76/203</td>
|
||||||
|
<td data-value="66.66" class="pct medium">66.66%</td>
|
||||||
|
<td data-value="6" class="abs medium">4/6</td>
|
||||||
|
<td data-value="44.44" class="pct low">44.44%</td>
|
||||||
|
<td data-value="9" class="abs low">4/9</td>
|
||||||
|
<td data-value="37.43" class="pct low">37.43%</td>
|
||||||
|
<td data-value="203" class="abs low">76/203</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class='push'></div><!-- for sticky footer -->
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
@ -86,7 +116,7 @@
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage generated by
|
Code coverage generated by
|
||||||
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||||
at 2023-07-31T20:32:18.706Z
|
at 2023-08-05T08:17:41.788Z
|
||||||
</div>
|
</div>
|
||||||
<script src="prettify.js"></script>
|
<script src="prettify.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -0,0 +1,691 @@
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for mappings/engine.ts</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../base.css" />
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1><a href="../index.html">All files</a> / <a href="index.html">mappings</a> engine.ts</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">37.43% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>76/203</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">66.66% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>4/6</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">44.44% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>4/9</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">37.43% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>76/203</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<p class="quiet">
|
||||||
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||||
|
</p>
|
||||||
|
<template id="filterTemplate">
|
||||||
|
<div class="quiet">
|
||||||
|
Filter:
|
||||||
|
<input oninput="onInput()" type="search" id="fileSearch">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class='status-line low'></div>
|
||||||
|
<pre><table class="coverage">
|
||||||
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
||||||
|
<a name='L2'></a><a href='#L2'>2</a>
|
||||||
|
<a name='L3'></a><a href='#L3'>3</a>
|
||||||
|
<a name='L4'></a><a href='#L4'>4</a>
|
||||||
|
<a name='L5'></a><a href='#L5'>5</a>
|
||||||
|
<a name='L6'></a><a href='#L6'>6</a>
|
||||||
|
<a name='L7'></a><a href='#L7'>7</a>
|
||||||
|
<a name='L8'></a><a href='#L8'>8</a>
|
||||||
|
<a name='L9'></a><a href='#L9'>9</a>
|
||||||
|
<a name='L10'></a><a href='#L10'>10</a>
|
||||||
|
<a name='L11'></a><a href='#L11'>11</a>
|
||||||
|
<a name='L12'></a><a href='#L12'>12</a>
|
||||||
|
<a name='L13'></a><a href='#L13'>13</a>
|
||||||
|
<a name='L14'></a><a href='#L14'>14</a>
|
||||||
|
<a name='L15'></a><a href='#L15'>15</a>
|
||||||
|
<a name='L16'></a><a href='#L16'>16</a>
|
||||||
|
<a name='L17'></a><a href='#L17'>17</a>
|
||||||
|
<a name='L18'></a><a href='#L18'>18</a>
|
||||||
|
<a name='L19'></a><a href='#L19'>19</a>
|
||||||
|
<a name='L20'></a><a href='#L20'>20</a>
|
||||||
|
<a name='L21'></a><a href='#L21'>21</a>
|
||||||
|
<a name='L22'></a><a href='#L22'>22</a>
|
||||||
|
<a name='L23'></a><a href='#L23'>23</a>
|
||||||
|
<a name='L24'></a><a href='#L24'>24</a>
|
||||||
|
<a name='L25'></a><a href='#L25'>25</a>
|
||||||
|
<a name='L26'></a><a href='#L26'>26</a>
|
||||||
|
<a name='L27'></a><a href='#L27'>27</a>
|
||||||
|
<a name='L28'></a><a href='#L28'>28</a>
|
||||||
|
<a name='L29'></a><a href='#L29'>29</a>
|
||||||
|
<a name='L30'></a><a href='#L30'>30</a>
|
||||||
|
<a name='L31'></a><a href='#L31'>31</a>
|
||||||
|
<a name='L32'></a><a href='#L32'>32</a>
|
||||||
|
<a name='L33'></a><a href='#L33'>33</a>
|
||||||
|
<a name='L34'></a><a href='#L34'>34</a>
|
||||||
|
<a name='L35'></a><a href='#L35'>35</a>
|
||||||
|
<a name='L36'></a><a href='#L36'>36</a>
|
||||||
|
<a name='L37'></a><a href='#L37'>37</a>
|
||||||
|
<a name='L38'></a><a href='#L38'>38</a>
|
||||||
|
<a name='L39'></a><a href='#L39'>39</a>
|
||||||
|
<a name='L40'></a><a href='#L40'>40</a>
|
||||||
|
<a name='L41'></a><a href='#L41'>41</a>
|
||||||
|
<a name='L42'></a><a href='#L42'>42</a>
|
||||||
|
<a name='L43'></a><a href='#L43'>43</a>
|
||||||
|
<a name='L44'></a><a href='#L44'>44</a>
|
||||||
|
<a name='L45'></a><a href='#L45'>45</a>
|
||||||
|
<a name='L46'></a><a href='#L46'>46</a>
|
||||||
|
<a name='L47'></a><a href='#L47'>47</a>
|
||||||
|
<a name='L48'></a><a href='#L48'>48</a>
|
||||||
|
<a name='L49'></a><a href='#L49'>49</a>
|
||||||
|
<a name='L50'></a><a href='#L50'>50</a>
|
||||||
|
<a name='L51'></a><a href='#L51'>51</a>
|
||||||
|
<a name='L52'></a><a href='#L52'>52</a>
|
||||||
|
<a name='L53'></a><a href='#L53'>53</a>
|
||||||
|
<a name='L54'></a><a href='#L54'>54</a>
|
||||||
|
<a name='L55'></a><a href='#L55'>55</a>
|
||||||
|
<a name='L56'></a><a href='#L56'>56</a>
|
||||||
|
<a name='L57'></a><a href='#L57'>57</a>
|
||||||
|
<a name='L58'></a><a href='#L58'>58</a>
|
||||||
|
<a name='L59'></a><a href='#L59'>59</a>
|
||||||
|
<a name='L60'></a><a href='#L60'>60</a>
|
||||||
|
<a name='L61'></a><a href='#L61'>61</a>
|
||||||
|
<a name='L62'></a><a href='#L62'>62</a>
|
||||||
|
<a name='L63'></a><a href='#L63'>63</a>
|
||||||
|
<a name='L64'></a><a href='#L64'>64</a>
|
||||||
|
<a name='L65'></a><a href='#L65'>65</a>
|
||||||
|
<a name='L66'></a><a href='#L66'>66</a>
|
||||||
|
<a name='L67'></a><a href='#L67'>67</a>
|
||||||
|
<a name='L68'></a><a href='#L68'>68</a>
|
||||||
|
<a name='L69'></a><a href='#L69'>69</a>
|
||||||
|
<a name='L70'></a><a href='#L70'>70</a>
|
||||||
|
<a name='L71'></a><a href='#L71'>71</a>
|
||||||
|
<a name='L72'></a><a href='#L72'>72</a>
|
||||||
|
<a name='L73'></a><a href='#L73'>73</a>
|
||||||
|
<a name='L74'></a><a href='#L74'>74</a>
|
||||||
|
<a name='L75'></a><a href='#L75'>75</a>
|
||||||
|
<a name='L76'></a><a href='#L76'>76</a>
|
||||||
|
<a name='L77'></a><a href='#L77'>77</a>
|
||||||
|
<a name='L78'></a><a href='#L78'>78</a>
|
||||||
|
<a name='L79'></a><a href='#L79'>79</a>
|
||||||
|
<a name='L80'></a><a href='#L80'>80</a>
|
||||||
|
<a name='L81'></a><a href='#L81'>81</a>
|
||||||
|
<a name='L82'></a><a href='#L82'>82</a>
|
||||||
|
<a name='L83'></a><a href='#L83'>83</a>
|
||||||
|
<a name='L84'></a><a href='#L84'>84</a>
|
||||||
|
<a name='L85'></a><a href='#L85'>85</a>
|
||||||
|
<a name='L86'></a><a href='#L86'>86</a>
|
||||||
|
<a name='L87'></a><a href='#L87'>87</a>
|
||||||
|
<a name='L88'></a><a href='#L88'>88</a>
|
||||||
|
<a name='L89'></a><a href='#L89'>89</a>
|
||||||
|
<a name='L90'></a><a href='#L90'>90</a>
|
||||||
|
<a name='L91'></a><a href='#L91'>91</a>
|
||||||
|
<a name='L92'></a><a href='#L92'>92</a>
|
||||||
|
<a name='L93'></a><a href='#L93'>93</a>
|
||||||
|
<a name='L94'></a><a href='#L94'>94</a>
|
||||||
|
<a name='L95'></a><a href='#L95'>95</a>
|
||||||
|
<a name='L96'></a><a href='#L96'>96</a>
|
||||||
|
<a name='L97'></a><a href='#L97'>97</a>
|
||||||
|
<a name='L98'></a><a href='#L98'>98</a>
|
||||||
|
<a name='L99'></a><a href='#L99'>99</a>
|
||||||
|
<a name='L100'></a><a href='#L100'>100</a>
|
||||||
|
<a name='L101'></a><a href='#L101'>101</a>
|
||||||
|
<a name='L102'></a><a href='#L102'>102</a>
|
||||||
|
<a name='L103'></a><a href='#L103'>103</a>
|
||||||
|
<a name='L104'></a><a href='#L104'>104</a>
|
||||||
|
<a name='L105'></a><a href='#L105'>105</a>
|
||||||
|
<a name='L106'></a><a href='#L106'>106</a>
|
||||||
|
<a name='L107'></a><a href='#L107'>107</a>
|
||||||
|
<a name='L108'></a><a href='#L108'>108</a>
|
||||||
|
<a name='L109'></a><a href='#L109'>109</a>
|
||||||
|
<a name='L110'></a><a href='#L110'>110</a>
|
||||||
|
<a name='L111'></a><a href='#L111'>111</a>
|
||||||
|
<a name='L112'></a><a href='#L112'>112</a>
|
||||||
|
<a name='L113'></a><a href='#L113'>113</a>
|
||||||
|
<a name='L114'></a><a href='#L114'>114</a>
|
||||||
|
<a name='L115'></a><a href='#L115'>115</a>
|
||||||
|
<a name='L116'></a><a href='#L116'>116</a>
|
||||||
|
<a name='L117'></a><a href='#L117'>117</a>
|
||||||
|
<a name='L118'></a><a href='#L118'>118</a>
|
||||||
|
<a name='L119'></a><a href='#L119'>119</a>
|
||||||
|
<a name='L120'></a><a href='#L120'>120</a>
|
||||||
|
<a name='L121'></a><a href='#L121'>121</a>
|
||||||
|
<a name='L122'></a><a href='#L122'>122</a>
|
||||||
|
<a name='L123'></a><a href='#L123'>123</a>
|
||||||
|
<a name='L124'></a><a href='#L124'>124</a>
|
||||||
|
<a name='L125'></a><a href='#L125'>125</a>
|
||||||
|
<a name='L126'></a><a href='#L126'>126</a>
|
||||||
|
<a name='L127'></a><a href='#L127'>127</a>
|
||||||
|
<a name='L128'></a><a href='#L128'>128</a>
|
||||||
|
<a name='L129'></a><a href='#L129'>129</a>
|
||||||
|
<a name='L130'></a><a href='#L130'>130</a>
|
||||||
|
<a name='L131'></a><a href='#L131'>131</a>
|
||||||
|
<a name='L132'></a><a href='#L132'>132</a>
|
||||||
|
<a name='L133'></a><a href='#L133'>133</a>
|
||||||
|
<a name='L134'></a><a href='#L134'>134</a>
|
||||||
|
<a name='L135'></a><a href='#L135'>135</a>
|
||||||
|
<a name='L136'></a><a href='#L136'>136</a>
|
||||||
|
<a name='L137'></a><a href='#L137'>137</a>
|
||||||
|
<a name='L138'></a><a href='#L138'>138</a>
|
||||||
|
<a name='L139'></a><a href='#L139'>139</a>
|
||||||
|
<a name='L140'></a><a href='#L140'>140</a>
|
||||||
|
<a name='L141'></a><a href='#L141'>141</a>
|
||||||
|
<a name='L142'></a><a href='#L142'>142</a>
|
||||||
|
<a name='L143'></a><a href='#L143'>143</a>
|
||||||
|
<a name='L144'></a><a href='#L144'>144</a>
|
||||||
|
<a name='L145'></a><a href='#L145'>145</a>
|
||||||
|
<a name='L146'></a><a href='#L146'>146</a>
|
||||||
|
<a name='L147'></a><a href='#L147'>147</a>
|
||||||
|
<a name='L148'></a><a href='#L148'>148</a>
|
||||||
|
<a name='L149'></a><a href='#L149'>149</a>
|
||||||
|
<a name='L150'></a><a href='#L150'>150</a>
|
||||||
|
<a name='L151'></a><a href='#L151'>151</a>
|
||||||
|
<a name='L152'></a><a href='#L152'>152</a>
|
||||||
|
<a name='L153'></a><a href='#L153'>153</a>
|
||||||
|
<a name='L154'></a><a href='#L154'>154</a>
|
||||||
|
<a name='L155'></a><a href='#L155'>155</a>
|
||||||
|
<a name='L156'></a><a href='#L156'>156</a>
|
||||||
|
<a name='L157'></a><a href='#L157'>157</a>
|
||||||
|
<a name='L158'></a><a href='#L158'>158</a>
|
||||||
|
<a name='L159'></a><a href='#L159'>159</a>
|
||||||
|
<a name='L160'></a><a href='#L160'>160</a>
|
||||||
|
<a name='L161'></a><a href='#L161'>161</a>
|
||||||
|
<a name='L162'></a><a href='#L162'>162</a>
|
||||||
|
<a name='L163'></a><a href='#L163'>163</a>
|
||||||
|
<a name='L164'></a><a href='#L164'>164</a>
|
||||||
|
<a name='L165'></a><a href='#L165'>165</a>
|
||||||
|
<a name='L166'></a><a href='#L166'>166</a>
|
||||||
|
<a name='L167'></a><a href='#L167'>167</a>
|
||||||
|
<a name='L168'></a><a href='#L168'>168</a>
|
||||||
|
<a name='L169'></a><a href='#L169'>169</a>
|
||||||
|
<a name='L170'></a><a href='#L170'>170</a>
|
||||||
|
<a name='L171'></a><a href='#L171'>171</a>
|
||||||
|
<a name='L172'></a><a href='#L172'>172</a>
|
||||||
|
<a name='L173'></a><a href='#L173'>173</a>
|
||||||
|
<a name='L174'></a><a href='#L174'>174</a>
|
||||||
|
<a name='L175'></a><a href='#L175'>175</a>
|
||||||
|
<a name='L176'></a><a href='#L176'>176</a>
|
||||||
|
<a name='L177'></a><a href='#L177'>177</a>
|
||||||
|
<a name='L178'></a><a href='#L178'>178</a>
|
||||||
|
<a name='L179'></a><a href='#L179'>179</a>
|
||||||
|
<a name='L180'></a><a href='#L180'>180</a>
|
||||||
|
<a name='L181'></a><a href='#L181'>181</a>
|
||||||
|
<a name='L182'></a><a href='#L182'>182</a>
|
||||||
|
<a name='L183'></a><a href='#L183'>183</a>
|
||||||
|
<a name='L184'></a><a href='#L184'>184</a>
|
||||||
|
<a name='L185'></a><a href='#L185'>185</a>
|
||||||
|
<a name='L186'></a><a href='#L186'>186</a>
|
||||||
|
<a name='L187'></a><a href='#L187'>187</a>
|
||||||
|
<a name='L188'></a><a href='#L188'>188</a>
|
||||||
|
<a name='L189'></a><a href='#L189'>189</a>
|
||||||
|
<a name='L190'></a><a href='#L190'>190</a>
|
||||||
|
<a name='L191'></a><a href='#L191'>191</a>
|
||||||
|
<a name='L192'></a><a href='#L192'>192</a>
|
||||||
|
<a name='L193'></a><a href='#L193'>193</a>
|
||||||
|
<a name='L194'></a><a href='#L194'>194</a>
|
||||||
|
<a name='L195'></a><a href='#L195'>195</a>
|
||||||
|
<a name='L196'></a><a href='#L196'>196</a>
|
||||||
|
<a name='L197'></a><a href='#L197'>197</a>
|
||||||
|
<a name='L198'></a><a href='#L198'>198</a>
|
||||||
|
<a name='L199'></a><a href='#L199'>199</a>
|
||||||
|
<a name='L200'></a><a href='#L200'>200</a>
|
||||||
|
<a name='L201'></a><a href='#L201'>201</a>
|
||||||
|
<a name='L202'></a><a href='#L202'>202</a>
|
||||||
|
<a name='L203'></a><a href='#L203'>203</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-yes">1x</span>
|
||||||
|
<span class="cline-any cline-yes">1x</span></td><td class="text"><pre class="prettyprint lang-js">import custom_utils from './utils'
|
||||||
|
|
||||||
|
const {debugLog} = custom_utils
|
||||||
|
|
||||||
|
let listOfBooleanKeys = [
|
||||||
|
"prise_type_ef",
|
||||||
|
"prise_type_2",
|
||||||
|
"prise_type_combo_ccs",
|
||||||
|
"prise_type_chademo",
|
||||||
|
"gratuit",
|
||||||
|
"paiement_acte",
|
||||||
|
"paiement_cb",
|
||||||
|
"cable_t2_attache"
|
||||||
|
]
|
||||||
|
|
||||||
|
export default class {
|
||||||
|
mapping_config: any = {}
|
||||||
|
|
||||||
|
constructor(mappingConfig) {
|
||||||
|
this.setConfig(mappingConfig)
|
||||||
|
}
|
||||||
|
|
||||||
|
setConfig(mappingConfig) {
|
||||||
|
this.mapping_config = mappingConfig
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="fstat-no" title="function not covered" > mapFeaturePoint(featurePointGeoJson) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let geoJSONConvertedPoint: any = {}</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > geoJSONConvertedPoint.properties = {...this.mapping_config.default_properties_of_point}</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > geoJSONConvertedPoint.type = featurePointGeoJson.type</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > geoJSONConvertedPoint.geometry = featurePointGeoJson.geometry</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let props = featurePointGeoJson.properties</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > props.forEach((key, value) => {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > })</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return geoJSONConvertedPoint</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO convert to mapping config property to transform_truthy
|
||||||
|
* @param pointKeyName
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
<span class="fstat-no" title="function not covered" > isBooleanKey(pointKeyName): boolean {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return listOfBooleanKeys.indexOf(pointKeyName) !== -1</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
truthyValues = ['true', 'True', 'TRUE', '1', 1]
|
||||||
|
falsyValues = ['false', 'False', 'FALSE', '0', 0]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* reduce number of features
|
||||||
|
* @param offsetCount
|
||||||
|
* @param listOfFeatures
|
||||||
|
*/
|
||||||
|
<span class="fstat-no" title="function not covered" > filterFeaturesByOffset(offsetCount: number, listOfFeatures): Array<any> {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let filteredList = listOfFeatures</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // TODO</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return filteredList</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
// filterFeaturesByPropertyRegex(bboxConfig, listOfFeatures) {
|
||||||
|
// console.log('bboxConfig', bboxConfig)
|
||||||
|
// let filteredList = listOfFeatures
|
||||||
|
// // TODO
|
||||||
|
// return filteredList
|
||||||
|
// }
|
||||||
|
|
||||||
|
<span class="fstat-no" title="function not covered" > filterFeaturesByPropertyRegex(propertyName, criteriaRegex, listOfFeatures) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let filteredList = listOfFeatures.filter(feature => {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return criteriaRegex.test(feature?.properties[propertyName])</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > })</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return filteredList</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* retuns the converted element from mapping config if present, null otherwise
|
||||||
|
*/
|
||||||
|
mapElementFromConf(featurePoint: any) {
|
||||||
|
if (!this.mapping_config) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > throw new Error('no config was loaded in the mapping engine. use setConfig(my_mapping_config) on this instance of mapping engine before using this.')</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
console.log('mapping_config tags', this.mapping_config.tags)
|
||||||
|
debugLog('config_name', this.mapping_config.config_name)
|
||||||
|
let mappingKeys = Object.keys(this.mapping_config.tags)
|
||||||
|
// let mappingKeys = (this.mapping_config.tags)
|
||||||
|
let featurePointPropertiesKeys = Object.keys(featurePoint.properties)
|
||||||
|
|
||||||
|
debugLog('============= keys mappingKeys:', this.mapping_config.tags.length, mappingKeys.length)
|
||||||
|
debugLog('============= keys featurePointPropertiesKeys :', featurePoint.properties.length, featurePointPropertiesKeys.length)
|
||||||
|
|
||||||
|
let newProperties = Object.create(this.mapping_config.default_properties_of_point)
|
||||||
|
|
||||||
|
<span class="branch-0 cbranch-no" title="branch not covered" > return;</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // reinit properties of current point</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let basePoint = Object.create(featurePoint)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > basePoint.type = featurePoint.type</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > basePoint.geometry = featurePoint.geometry</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // apply new properties if found in mapping config</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > featurePointPropertiesKeys.forEach(pointKeyName => {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > this.convertProperty(pointKeyName, mappingKeys, featurePoint, newProperties)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > })</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > basePoint.properties = newProperties</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('basePoint', basePoint)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > return basePoint</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
<span class="fstat-no" title="function not covered" > convertProperty(pointKeyName, mappingKeys, featurePoint, newProperties) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > console.log('pointKeyName', pointKeyName)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (!mappingKeys.indexOf(pointKeyName) !== -1) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('found element', pointKeyName, '=>', this.mapping_config[pointKeyName], 'value : ', featurePoint.properties[pointKeyName])</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let convertedValue = ''</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let valueConvertedFromMapping = featurePoint.properties[pointKeyName]</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let typeofValue = typeof valueConvertedFromMapping</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let isStringValue = typeofValue === 'string'</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('- pointKeyName', pointKeyName)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('- valueConvertedFromMapping', valueConvertedFromMapping)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // debugLog('typeof featurePoint.properties[pointKeyName] === \'string\'', typeofValue)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let isConfigMappingObject = typeofValue === 'string'</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (isStringValue) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('-- string value')</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (this.isBooleanKey(pointKeyName)) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let lowerValue = (valueConvertedFromMapping + '').toLowerCase()</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('isBooleanKey: lowerValue', lowerValue)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = this.truthyValues.indexOf(lowerValue) ? 'yes' : 'no'</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > } else {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = valueConvertedFromMapping</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > debugLog('-- convertedValue', convertedValue)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (convertedValue) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > newProperties[this.mapping_config[pointKeyName]] = convertedValue</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > } else if (isConfigMappingObject) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let newKey = ''</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let configObject = valueConvertedFromMapping</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (configObject.key_converted) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > newKey = configObject.key_converted</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > /**</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > * gestion des valeurs conditionnelles</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > * nous pouvons renseigner une string ou un objet décrivant les transformations à réaliser</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > */</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (configObject.conditional_values) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let keysConditionnalValues = Object.keys(configObject.conditional_values)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let isFoundValue = keysConditionnalValues.indexOf(valueConvertedFromMapping)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (isFoundValue !== -1) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > let conditionnalConfig :any = keysConditionnalValues[isFoundValue]</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (conditionnalConfig.tags_to_add) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // on peut définir un ensemble de tags à rajouter</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > newProperties.push(...conditionnalConfig.tags_to_add)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (conditionnalConfig.truthy_value) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // convertir la valeur, si elle est truthy, la transformer en ce que donne la propriété truthy_value</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // exemple: le jeu de données dit que la colonne cable_t2_attache vaut "True", mais on veut le convertir en "1".</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // on met donc truthy_value: '1'</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (this.truthyValues.indexOf(valueConvertedFromMapping) !== -1) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = conditionnalConfig.truthy_value</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (conditionnalConfig.falsy_value) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (this.falsyValues.indexOf(valueConvertedFromMapping) !== -1) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = conditionnalConfig.falsy_value</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (conditionnalConfig.transform_function) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // une transformation de la valeur</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // apply transformation to value</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = conditionnalConfig.transform_function(valueConvertedFromMapping)</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > // use the value converted</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > else if (conditionnalConfig.value_converted) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > convertedValue = conditionnalConfig.value_converted</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" ></span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > if (newKey && !configObject.ignore_this_data) {</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > newProperties[newKey] = convertedValue</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
<span class="cstat-no" title="statement not covered" > }</span>
|
||||||
|
|
||||||
|
}</pre></td></tr></table></pre>
|
||||||
|
|
||||||
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage generated by
|
||||||
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||||
|
at 2023-08-05T08:17:41.788Z
|
||||||
|
</div>
|
||||||
|
<script src="../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
prettyPrint();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../sorter.js"></script>
|
||||||
|
<script src="../block-navigation.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1,116 @@
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Code coverage report for mappings</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="../prettify.css" />
|
||||||
|
<link rel="stylesheet" href="../base.css" />
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<style type='text/css'>
|
||||||
|
.coverage-summary .sorter {
|
||||||
|
background-image: url(../sort-arrow-sprite.png);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class='wrapper'>
|
||||||
|
<div class='pad1'>
|
||||||
|
<h1><a href="../index.html">All files</a> mappings</h1>
|
||||||
|
<div class='clearfix'>
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">37.43% </span>
|
||||||
|
<span class="quiet">Statements</span>
|
||||||
|
<span class='fraction'>76/203</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">66.66% </span>
|
||||||
|
<span class="quiet">Branches</span>
|
||||||
|
<span class='fraction'>4/6</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">44.44% </span>
|
||||||
|
<span class="quiet">Functions</span>
|
||||||
|
<span class='fraction'>4/9</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='fl pad1y space-right2'>
|
||||||
|
<span class="strong">37.43% </span>
|
||||||
|
<span class="quiet">Lines</span>
|
||||||
|
<span class='fraction'>76/203</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<p class="quiet">
|
||||||
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||||
|
</p>
|
||||||
|
<template id="filterTemplate">
|
||||||
|
<div class="quiet">
|
||||||
|
Filter:
|
||||||
|
<input oninput="onInput()" type="search" id="fileSearch">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class='status-line low'></div>
|
||||||
|
<div class="pad1">
|
||||||
|
<table class="coverage-summary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||||
|
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||||
|
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||||
|
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||||
|
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||||
|
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||||
|
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr>
|
||||||
|
<td class="file low" data-value="engine.ts"><a href="engine.ts.html">engine.ts</a></td>
|
||||||
|
<td data-value="37.43" class="pic low">
|
||||||
|
<div class="chart"><div class="cover-fill" style="width: 37%"></div><div class="cover-empty" style="width: 63%"></div></div>
|
||||||
|
</td>
|
||||||
|
<td data-value="37.43" class="pct low">37.43%</td>
|
||||||
|
<td data-value="203" class="abs low">76/203</td>
|
||||||
|
<td data-value="66.66" class="pct medium">66.66%</td>
|
||||||
|
<td data-value="6" class="abs medium">4/6</td>
|
||||||
|
<td data-value="44.44" class="pct low">44.44%</td>
|
||||||
|
<td data-value="9" class="abs low">4/9</td>
|
||||||
|
<td data-value="37.43" class="pct low">37.43%</td>
|
||||||
|
<td data-value="203" class="abs low">76/203</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class='push'></div><!-- for sticky footer -->
|
||||||
|
</div><!-- /wrapper -->
|
||||||
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
|
Code coverage generated by
|
||||||
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||||
|
at 2023-08-05T08:17:41.788Z
|
||||||
|
</div>
|
||||||
|
<script src="../prettify.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
prettyPrint();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script src="../sorter.js"></script>
|
||||||
|
<script src="../block-navigation.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1,279 @@
|
||||||
|
TN:
|
||||||
|
SF:data_other/testing/mappings_to_test.ts
|
||||||
|
FNF:0
|
||||||
|
FNH:0
|
||||||
|
DA:1,1
|
||||||
|
DA:2,1
|
||||||
|
DA:3,1
|
||||||
|
DA:4,1
|
||||||
|
DA:5,1
|
||||||
|
DA:6,1
|
||||||
|
DA:7,1
|
||||||
|
DA:8,1
|
||||||
|
DA:9,1
|
||||||
|
DA:10,1
|
||||||
|
DA:11,1
|
||||||
|
DA:12,1
|
||||||
|
DA:13,1
|
||||||
|
DA:14,1
|
||||||
|
DA:15,1
|
||||||
|
DA:16,1
|
||||||
|
DA:17,1
|
||||||
|
DA:18,1
|
||||||
|
DA:19,1
|
||||||
|
DA:20,1
|
||||||
|
DA:21,1
|
||||||
|
DA:22,1
|
||||||
|
DA:23,1
|
||||||
|
DA:24,1
|
||||||
|
DA:25,1
|
||||||
|
DA:26,1
|
||||||
|
DA:27,1
|
||||||
|
DA:28,1
|
||||||
|
DA:29,1
|
||||||
|
DA:30,1
|
||||||
|
DA:31,1
|
||||||
|
DA:32,1
|
||||||
|
DA:33,1
|
||||||
|
DA:34,1
|
||||||
|
LF:34
|
||||||
|
LH:34
|
||||||
|
BRF:0
|
||||||
|
BRH:0
|
||||||
|
end_of_record
|
||||||
|
TN:
|
||||||
|
SF:mappings/engine.ts
|
||||||
|
FN:16,<instance_members_initializer>
|
||||||
|
FN:19,_default
|
||||||
|
FN:23,setConfig
|
||||||
|
FN:27,mapFeaturePoint
|
||||||
|
FN:48,isBooleanKey
|
||||||
|
FN:61,filterFeaturesByOffset
|
||||||
|
FN:74,filterFeaturesByPropertyRegex
|
||||||
|
FN:84,mapElementFromConf
|
||||||
|
FN:120,convertProperty
|
||||||
|
FNF:9
|
||||||
|
FNH:4
|
||||||
|
FNDA:1,<instance_members_initializer>
|
||||||
|
FNDA:1,_default
|
||||||
|
FNDA:1,setConfig
|
||||||
|
FNDA:0,mapFeaturePoint
|
||||||
|
FNDA:0,isBooleanKey
|
||||||
|
FNDA:0,filterFeaturesByOffset
|
||||||
|
FNDA:0,filterFeaturesByPropertyRegex
|
||||||
|
FNDA:1,mapElementFromConf
|
||||||
|
FNDA:0,convertProperty
|
||||||
|
DA:1,1
|
||||||
|
DA:2,1
|
||||||
|
DA:3,1
|
||||||
|
DA:4,1
|
||||||
|
DA:5,1
|
||||||
|
DA:6,1
|
||||||
|
DA:7,1
|
||||||
|
DA:8,1
|
||||||
|
DA:9,1
|
||||||
|
DA:10,1
|
||||||
|
DA:11,1
|
||||||
|
DA:12,1
|
||||||
|
DA:13,1
|
||||||
|
DA:14,1
|
||||||
|
DA:15,1
|
||||||
|
DA:16,1
|
||||||
|
DA:17,1
|
||||||
|
DA:18,1
|
||||||
|
DA:19,1
|
||||||
|
DA:20,1
|
||||||
|
DA:21,1
|
||||||
|
DA:22,1
|
||||||
|
DA:23,1
|
||||||
|
DA:24,1
|
||||||
|
DA:25,1
|
||||||
|
DA:26,1
|
||||||
|
DA:27,1
|
||||||
|
DA:28,0
|
||||||
|
DA:29,0
|
||||||
|
DA:30,0
|
||||||
|
DA:31,0
|
||||||
|
DA:32,0
|
||||||
|
DA:33,0
|
||||||
|
DA:34,0
|
||||||
|
DA:35,0
|
||||||
|
DA:36,0
|
||||||
|
DA:37,0
|
||||||
|
DA:38,0
|
||||||
|
DA:39,0
|
||||||
|
DA:40,0
|
||||||
|
DA:41,0
|
||||||
|
DA:42,1
|
||||||
|
DA:43,1
|
||||||
|
DA:44,1
|
||||||
|
DA:45,1
|
||||||
|
DA:46,1
|
||||||
|
DA:47,1
|
||||||
|
DA:48,1
|
||||||
|
DA:49,0
|
||||||
|
DA:50,0
|
||||||
|
DA:51,0
|
||||||
|
DA:52,1
|
||||||
|
DA:53,1
|
||||||
|
DA:54,1
|
||||||
|
DA:55,1
|
||||||
|
DA:56,1
|
||||||
|
DA:57,1
|
||||||
|
DA:58,1
|
||||||
|
DA:59,1
|
||||||
|
DA:60,1
|
||||||
|
DA:61,1
|
||||||
|
DA:62,0
|
||||||
|
DA:63,0
|
||||||
|
DA:64,0
|
||||||
|
DA:65,0
|
||||||
|
DA:66,1
|
||||||
|
DA:67,1
|
||||||
|
DA:68,1
|
||||||
|
DA:69,1
|
||||||
|
DA:70,1
|
||||||
|
DA:71,1
|
||||||
|
DA:72,1
|
||||||
|
DA:73,1
|
||||||
|
DA:74,1
|
||||||
|
DA:75,0
|
||||||
|
DA:76,0
|
||||||
|
DA:77,0
|
||||||
|
DA:78,0
|
||||||
|
DA:79,0
|
||||||
|
DA:80,1
|
||||||
|
DA:81,1
|
||||||
|
DA:82,1
|
||||||
|
DA:83,1
|
||||||
|
DA:84,1
|
||||||
|
DA:85,1
|
||||||
|
DA:86,0
|
||||||
|
DA:87,0
|
||||||
|
DA:88,0
|
||||||
|
DA:89,1
|
||||||
|
DA:90,1
|
||||||
|
DA:91,1
|
||||||
|
DA:92,1
|
||||||
|
DA:93,1
|
||||||
|
DA:94,1
|
||||||
|
DA:95,1
|
||||||
|
DA:96,1
|
||||||
|
DA:97,1
|
||||||
|
DA:98,1
|
||||||
|
DA:99,1
|
||||||
|
DA:100,1
|
||||||
|
DA:101,1
|
||||||
|
DA:102,0
|
||||||
|
DA:103,0
|
||||||
|
DA:104,0
|
||||||
|
DA:105,0
|
||||||
|
DA:106,0
|
||||||
|
DA:107,0
|
||||||
|
DA:108,0
|
||||||
|
DA:109,0
|
||||||
|
DA:110,0
|
||||||
|
DA:111,0
|
||||||
|
DA:112,0
|
||||||
|
DA:113,0
|
||||||
|
DA:114,0
|
||||||
|
DA:115,0
|
||||||
|
DA:116,0
|
||||||
|
DA:117,0
|
||||||
|
DA:118,0
|
||||||
|
DA:119,1
|
||||||
|
DA:120,1
|
||||||
|
DA:121,0
|
||||||
|
DA:122,0
|
||||||
|
DA:123,0
|
||||||
|
DA:124,0
|
||||||
|
DA:125,0
|
||||||
|
DA:126,0
|
||||||
|
DA:127,0
|
||||||
|
DA:128,0
|
||||||
|
DA:129,0
|
||||||
|
DA:130,0
|
||||||
|
DA:131,0
|
||||||
|
DA:132,0
|
||||||
|
DA:133,0
|
||||||
|
DA:134,0
|
||||||
|
DA:135,0
|
||||||
|
DA:136,0
|
||||||
|
DA:137,0
|
||||||
|
DA:138,0
|
||||||
|
DA:139,0
|
||||||
|
DA:140,0
|
||||||
|
DA:141,0
|
||||||
|
DA:142,0
|
||||||
|
DA:143,0
|
||||||
|
DA:144,0
|
||||||
|
DA:145,0
|
||||||
|
DA:146,0
|
||||||
|
DA:147,0
|
||||||
|
DA:148,0
|
||||||
|
DA:149,0
|
||||||
|
DA:150,0
|
||||||
|
DA:151,0
|
||||||
|
DA:152,0
|
||||||
|
DA:153,0
|
||||||
|
DA:154,0
|
||||||
|
DA:155,0
|
||||||
|
DA:156,0
|
||||||
|
DA:157,0
|
||||||
|
DA:158,0
|
||||||
|
DA:159,0
|
||||||
|
DA:160,0
|
||||||
|
DA:161,0
|
||||||
|
DA:162,0
|
||||||
|
DA:163,0
|
||||||
|
DA:164,0
|
||||||
|
DA:165,0
|
||||||
|
DA:166,0
|
||||||
|
DA:167,0
|
||||||
|
DA:168,0
|
||||||
|
DA:169,0
|
||||||
|
DA:170,0
|
||||||
|
DA:171,0
|
||||||
|
DA:172,0
|
||||||
|
DA:173,0
|
||||||
|
DA:174,0
|
||||||
|
DA:175,0
|
||||||
|
DA:176,0
|
||||||
|
DA:177,0
|
||||||
|
DA:178,0
|
||||||
|
DA:179,0
|
||||||
|
DA:180,0
|
||||||
|
DA:181,0
|
||||||
|
DA:182,0
|
||||||
|
DA:183,0
|
||||||
|
DA:184,0
|
||||||
|
DA:185,0
|
||||||
|
DA:186,0
|
||||||
|
DA:187,0
|
||||||
|
DA:188,0
|
||||||
|
DA:189,0
|
||||||
|
DA:190,0
|
||||||
|
DA:191,0
|
||||||
|
DA:192,0
|
||||||
|
DA:193,0
|
||||||
|
DA:194,0
|
||||||
|
DA:195,0
|
||||||
|
DA:196,0
|
||||||
|
DA:197,0
|
||||||
|
DA:198,0
|
||||||
|
DA:199,0
|
||||||
|
DA:200,0
|
||||||
|
DA:201,0
|
||||||
|
DA:202,1
|
||||||
|
DA:203,1
|
||||||
|
LF:203
|
||||||
|
LH:76
|
||||||
|
BRDA:16,0,0,1
|
||||||
|
BRDA:19,1,0,1
|
||||||
|
BRDA:23,2,0,1
|
||||||
|
BRDA:84,3,0,1
|
||||||
|
BRDA:85,4,0,0
|
||||||
|
BRDA:101,5,0,0
|
||||||
|
BRF:6
|
||||||
|
BRH:4
|
||||||
|
end_of_record
|
|
@ -1,14 +1,199 @@
|
||||||
/*
|
/**
|
||||||
* For a detailed explanation regarding each configuration property and type check, visit:
|
* For a detailed explanation regarding each configuration property, visit:
|
||||||
* https://jestjs.io/docs/configuration
|
* https://jestjs.io/docs/configuration
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
|
||||||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$",
|
import type {Config} from 'jest';
|
||||||
transform: {
|
|
||||||
"^.+\\.jsx?$": "babel-jest",
|
const config: Config = {
|
||||||
"^.+\\.mjs$": "babel-jest",
|
// All imported modules in your tests should be mocked automatically
|
||||||
"^.+\\.ts$": "babel-jest",
|
// automock: false,
|
||||||
},
|
|
||||||
testPathIgnorePatterns: ["<rootDir>/build/", "<rootDir>/node_modules/"],
|
// Stop running tests after `n` failures
|
||||||
moduleFileExtensions: ["js", "jsx", "mjs"]
|
// bail: 0,
|
||||||
}
|
|
||||||
|
// The directory where Jest should store its cached dependency information
|
||||||
|
// cacheDirectory: "/tmp/jest_rs",
|
||||||
|
|
||||||
|
// Automatically clear mock calls, instances, contexts and results before every test
|
||||||
|
clearMocks: true,
|
||||||
|
|
||||||
|
// Indicates whether the coverage information should be collected while executing the test
|
||||||
|
collectCoverage: true,
|
||||||
|
|
||||||
|
// An array of glob patterns indicating a set of files for which coverage information should be collected
|
||||||
|
// collectCoverageFrom: undefined,
|
||||||
|
|
||||||
|
// The directory where Jest should output its coverage files
|
||||||
|
coverageDirectory: "coverage",
|
||||||
|
|
||||||
|
// An array of regexp pattern strings used to skip coverage collection
|
||||||
|
// coveragePathIgnorePatterns: [
|
||||||
|
// "/node_modules/"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// Indicates which provider should be used to instrument code for coverage
|
||||||
|
coverageProvider: "v8",
|
||||||
|
|
||||||
|
// A list of reporter names that Jest uses when writing coverage reports
|
||||||
|
// coverageReporters: [
|
||||||
|
// "json",
|
||||||
|
// "text",
|
||||||
|
// "lcov",
|
||||||
|
// "clover"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// An object that configures minimum threshold enforcement for coverage results
|
||||||
|
// coverageThreshold: undefined,
|
||||||
|
|
||||||
|
// A path to a custom dependency extractor
|
||||||
|
// dependencyExtractor: undefined,
|
||||||
|
|
||||||
|
// Make calling deprecated APIs throw helpful error messages
|
||||||
|
// errorOnDeprecated: false,
|
||||||
|
|
||||||
|
// The default configuration for fake timers
|
||||||
|
// fakeTimers: {
|
||||||
|
// "enableGlobally": false
|
||||||
|
// },
|
||||||
|
|
||||||
|
// Force coverage collection from ignored files using an array of glob patterns
|
||||||
|
// forceCoverageMatch: [],
|
||||||
|
|
||||||
|
// A path to a module which exports an async function that is triggered once before all test suites
|
||||||
|
// globalSetup: undefined,
|
||||||
|
|
||||||
|
// A path to a module which exports an async function that is triggered once after all test suites
|
||||||
|
// globalTeardown: undefined,
|
||||||
|
|
||||||
|
// A set of global variables that need to be available in all test environments
|
||||||
|
// globals: {},
|
||||||
|
|
||||||
|
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
|
||||||
|
// maxWorkers: "50%",
|
||||||
|
|
||||||
|
// An array of directory names to be searched recursively up from the requiring module's location
|
||||||
|
// moduleDirectories: [
|
||||||
|
// "node_modules"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// An array of file extensions your modules use
|
||||||
|
// moduleFileExtensions: [
|
||||||
|
// "js",
|
||||||
|
// "mjs",
|
||||||
|
// "cjs",
|
||||||
|
// "jsx",
|
||||||
|
// "ts",
|
||||||
|
// "tsx",
|
||||||
|
// "json",
|
||||||
|
// "node"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
|
||||||
|
// moduleNameMapper: {},
|
||||||
|
|
||||||
|
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
|
||||||
|
// modulePathIgnorePatterns: [],
|
||||||
|
|
||||||
|
// Activates notifications for test results
|
||||||
|
// notify: false,
|
||||||
|
|
||||||
|
// An enum that specifies notification mode. Requires { notify: true }
|
||||||
|
// notifyMode: "failure-change",
|
||||||
|
|
||||||
|
// A preset that is used as a base for Jest's configuration
|
||||||
|
// preset: undefined,
|
||||||
|
|
||||||
|
// Run tests from one or more projects
|
||||||
|
// projects: undefined,
|
||||||
|
|
||||||
|
// Use this configuration option to add custom reporters to Jest
|
||||||
|
// reporters: undefined,
|
||||||
|
|
||||||
|
// Automatically reset mock state before every test
|
||||||
|
// resetMocks: false,
|
||||||
|
|
||||||
|
// Reset the module registry before running each individual test
|
||||||
|
// resetModules: false,
|
||||||
|
|
||||||
|
// A path to a custom resolver
|
||||||
|
// resolver: undefined,
|
||||||
|
|
||||||
|
// Automatically restore mock state and implementation before every test
|
||||||
|
// restoreMocks: false,
|
||||||
|
|
||||||
|
// The root directory that Jest should scan for tests and modules within
|
||||||
|
// rootDir: undefined,
|
||||||
|
|
||||||
|
// A list of paths to directories that Jest should use to search for files in
|
||||||
|
// roots: [
|
||||||
|
// "<rootDir>"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// Allows you to use a custom runner instead of Jest's default test runner
|
||||||
|
// runner: "jest-runner",
|
||||||
|
|
||||||
|
// The paths to modules that run some code to configure or set up the testing environment before each test
|
||||||
|
// setupFiles: [],
|
||||||
|
|
||||||
|
// A list of paths to modules that run some code to configure or set up the testing framework before each test
|
||||||
|
// setupFilesAfterEnv: [],
|
||||||
|
|
||||||
|
// The number of seconds after which a test is considered as slow and reported as such in the results.
|
||||||
|
// slowTestThreshold: 5,
|
||||||
|
|
||||||
|
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
|
||||||
|
// snapshotSerializers: [],
|
||||||
|
|
||||||
|
// The test environment that will be used for testing
|
||||||
|
// testEnvironment: "jest-environment-node",
|
||||||
|
|
||||||
|
// Options that will be passed to the testEnvironment
|
||||||
|
// testEnvironmentOptions: {},
|
||||||
|
|
||||||
|
// Adds a location field to test results
|
||||||
|
// testLocationInResults: false,
|
||||||
|
|
||||||
|
// The glob patterns Jest uses to detect test files
|
||||||
|
// testMatch: [
|
||||||
|
// "**/__tests__/**/*.[jt]s?(x)",
|
||||||
|
// "**/?(*.)+(spec|test).[tj]s?(x)"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
||||||
|
// testPathIgnorePatterns: [
|
||||||
|
// "/node_modules/"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// The regexp pattern or array of patterns that Jest uses to detect test files
|
||||||
|
// testRegex: [],
|
||||||
|
|
||||||
|
// This option allows the use of a custom results processor
|
||||||
|
// testResultsProcessor: undefined,
|
||||||
|
|
||||||
|
// This option allows use of a custom test runner
|
||||||
|
// testRunner: "jest-circus/runner",
|
||||||
|
|
||||||
|
// A map from regular expressions to paths to transformers
|
||||||
|
// transform: undefined,
|
||||||
|
|
||||||
|
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
||||||
|
// transformIgnorePatterns: [
|
||||||
|
// "/node_modules/",
|
||||||
|
// "\\.pnp\\.[^\\/]+$"
|
||||||
|
// ],
|
||||||
|
|
||||||
|
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
||||||
|
// unmockedModulePathPatterns: undefined,
|
||||||
|
|
||||||
|
// Indicates whether each individual test should be reported during the run
|
||||||
|
// verbose: undefined,
|
||||||
|
|
||||||
|
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
|
||||||
|
// watchPathIgnorePatterns: [],
|
||||||
|
|
||||||
|
// Whether to use watchman for file crawling
|
||||||
|
// watchman: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "ts-node convert_to_osm_tags.ts --engine",
|
"start": "ts-node convert_to_osm_tags.ts --engine",
|
||||||
"filter": "node convert_to_osm_tags.ts --department=76 --engine=true",
|
"filter": "node convert_to_osm_tags.ts --department=76 --engine=true",
|
||||||
"test": "jest --coverage --watch",
|
"test": "jest --coverage --watch"
|
||||||
"tests": "jest --coverage --watch"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
"jest": "^29.6.2",
|
"jest": "^29.6.2",
|
||||||
"loglevel": "^1.8.1",
|
"loglevel": "^1.8.1",
|
||||||
"nodemon": "^2.0.22",
|
"nodemon": "^2.0.22",
|
||||||
|
"ts-jest": "^29.1.1",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"tslib": "^2.6.1",
|
"tslib": "^2.6.1",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
|
|
|
@ -43,6 +43,9 @@ devDependencies:
|
||||||
nodemon:
|
nodemon:
|
||||||
specifier: ^2.0.22
|
specifier: ^2.0.22
|
||||||
version: 2.0.22
|
version: 2.0.22
|
||||||
|
ts-jest:
|
||||||
|
specifier: ^29.1.1
|
||||||
|
version: 29.1.1(@babel/core@7.22.9)(babel-jest@29.6.2)(jest@29.6.2)(typescript@5.1.6)
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: ^10.9.1
|
specifier: ^10.9.1
|
||||||
version: 10.9.1(@types/node@20.4.5)(typescript@5.1.6)
|
version: 10.9.1(@types/node@20.4.5)(typescript@5.1.6)
|
||||||
|
@ -1886,6 +1889,13 @@ packages:
|
||||||
update-browserslist-db: 1.0.11(browserslist@4.21.10)
|
update-browserslist-db: 1.0.11(browserslist@4.21.10)
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/bs-logger@0.2.6:
|
||||||
|
resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==}
|
||||||
|
engines: {node: '>= 6'}
|
||||||
|
dependencies:
|
||||||
|
fast-json-stable-stringify: 2.1.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/bser@2.1.1:
|
/bser@2.1.1:
|
||||||
resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
|
resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -2872,6 +2882,10 @@ packages:
|
||||||
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
|
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/lodash.memoize@4.1.2:
|
||||||
|
resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/loglevel@1.8.1:
|
/loglevel@1.8.1:
|
||||||
resolution: {integrity: sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==}
|
resolution: {integrity: sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==}
|
||||||
engines: {node: '>= 0.6.0'}
|
engines: {node: '>= 0.6.0'}
|
||||||
|
@ -3367,6 +3381,41 @@ packages:
|
||||||
nopt: 1.0.10
|
nopt: 1.0.10
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/ts-jest@29.1.1(@babel/core@7.22.9)(babel-jest@29.6.2)(jest@29.6.2)(typescript@5.1.6):
|
||||||
|
resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==}
|
||||||
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
|
hasBin: true
|
||||||
|
peerDependencies:
|
||||||
|
'@babel/core': '>=7.0.0-beta.0 <8'
|
||||||
|
'@jest/types': ^29.0.0
|
||||||
|
babel-jest: ^29.0.0
|
||||||
|
esbuild: '*'
|
||||||
|
jest: ^29.0.0
|
||||||
|
typescript: '>=4.3 <6'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@babel/core':
|
||||||
|
optional: true
|
||||||
|
'@jest/types':
|
||||||
|
optional: true
|
||||||
|
babel-jest:
|
||||||
|
optional: true
|
||||||
|
esbuild:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
'@babel/core': 7.22.9
|
||||||
|
babel-jest: 29.6.2(@babel/core@7.22.9)
|
||||||
|
bs-logger: 0.2.6
|
||||||
|
fast-json-stable-stringify: 2.1.0
|
||||||
|
jest: 29.6.2(@types/node@20.4.5)(ts-node@10.9.1)
|
||||||
|
jest-util: 29.6.2
|
||||||
|
json5: 2.2.3
|
||||||
|
lodash.memoize: 4.1.2
|
||||||
|
make-error: 1.3.6
|
||||||
|
semver: 7.5.4
|
||||||
|
typescript: 5.1.6
|
||||||
|
yargs-parser: 21.1.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
/ts-node@10.9.1(@types/node@20.4.5)(typescript@5.1.6):
|
/ts-node@10.9.1(@types/node@20.4.5)(typescript@5.1.6):
|
||||||
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
|
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
|
@ -1,31 +1,29 @@
|
||||||
import mapping_engine from '../mappings/engine.ts'
|
import mapping_engine from '../mappings/engine.ts'
|
||||||
import { mappingRemoveAll } from '../data_other/testing/mappings_to_test'
|
import { mappingRemoveAll } from '../data_other/testing/mappings_to_test'
|
||||||
|
import * as testingGeoJson from '../data_other/testing/testing.json'
|
||||||
|
|
||||||
|
import { describe, expect, test } from '@jest/globals'
|
||||||
|
|
||||||
describe('mapping properties with rich mapping engine', () => {
|
describe('mapping properties with rich mapping engine', () => {
|
||||||
|
|
||||||
test('do not add properties at all when there is nothing in tags of the mapping config', () => {
|
// test('do not add properties at all when there is nothing in tags of the mapping config', () => {
|
||||||
|
//
|
||||||
})
|
// })
|
||||||
test('remove all properties when mapping says so', () => {
|
test('remove all properties when mapping says so', () => {
|
||||||
|
|
||||||
|
|
||||||
let Mapping_engine = new mapping_engine(mappingRemoveAll)
|
let Mapping_engine = new mapping_engine(mappingRemoveAll)
|
||||||
|
|
||||||
let mapped_point = {}
|
let mapped_point = { properties: []}
|
||||||
list_of_points.forEach(feature_point => {
|
mapped_point = Mapping_engine.mapElementFromConf(testingGeoJson.features[0])
|
||||||
mapped_point = Mapping_engine.mapElementFromConf(feature_point)
|
expect(mapped_point.properties).toBe([])
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
expect(mapped_point.properties).toBeFalsy();
|
|
||||||
|
|
||||||
})
|
})
|
||||||
test('maps simple key to key, and keep the same value', () => { })
|
// test('maps simple key to key, and keep the same value', () => { })
|
||||||
test('ignore one value', () => { })
|
// test('ignore one value', () => { })
|
||||||
test('conditional value', () => { })
|
// test('conditional value', () => { })
|
||||||
test('conditional transform', () => { })
|
// test('conditional transform', () => { })
|
||||||
test('conditional truthy transform', () => { })
|
// test('conditional truthy transform', () => { })
|
||||||
test('conditional falsy transform', () => { })
|
// test('conditional falsy transform', () => { })
|
||||||
})
|
})
|
||||||
|
|
||||||
xdescribe('filters points', () => {
|
xdescribe('filters points', () => {
|
||||||
|
|
Loading…
Reference in New Issue