Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ermodo committed Apr 20, 2021
2 parents e1fdddf + 8b71ecc commit 8b835a0
Show file tree
Hide file tree
Showing 24 changed files with 323 additions and 149 deletions.
60 changes: 30 additions & 30 deletions docs/coverage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">46.45% </span>
<span class="strong">43.52% </span>
<span class="quiet">Statements</span>
<span class='fraction'>131/282</span>
<span class='fraction'>131/301</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">29.17% </span>
<span class="strong">26.92% </span>
<span class="quiet">Branches</span>
<span class='fraction'>14/48</span>
<span class='fraction'>14/52</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">40.85% </span>
<span class="strong">37.18% </span>
<span class="quiet">Functions</span>
<span class='fraction'>29/71</span>
<span class='fraction'>29/78</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">45.63% </span>
<span class="strong">42.59% </span>
<span class="quiet">Lines</span>
<span class='fraction'>115/252</span>
<span class='fraction'>115/270</span>
</div>


Expand Down Expand Up @@ -89,32 +89,32 @@ <h1>All files</h1>

<tr>
<td class="file low" data-value="src/agent/brains"><a href="src/agent/brains/index.html">src/agent/brains</a></td>
<td data-value="30.16" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 30%"></div><div class="cover-empty" style="width: 70%"></div></div>
<td data-value="26.76" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 26%"></div><div class="cover-empty" style="width: 74%"></div></div>
</td>
<td data-value="30.16" class="pct low">30.16%</td>
<td data-value="63" class="abs low">19/63</td>
<td data-value="26.76" class="pct low">26.76%</td>
<td data-value="71" class="abs low">19/71</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="4" class="abs low">0/4</td>
<td data-value="21.74" class="pct low">21.74%</td>
<td data-value="23" class="abs low">5/23</td>
<td data-value="31.67" class="pct low">31.67%</td>
<td data-value="60" class="abs low">19/60</td>
<td data-value="6" class="abs low">0/6</td>
<td data-value="20.83" class="pct low">20.83%</td>
<td data-value="24" class="abs low">5/24</td>
<td data-value="27.94" class="pct low">27.94%</td>
<td data-value="68" class="abs low">19/68</td>
</tr>

<tr>
<td class="file high" data-value="src/agent/models"><a href="src/agent/models/index.html">src/agent/models</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 data-value="83.33" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 83%"></div><div class="cover-empty" style="width: 17%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="83.33" class="pct high">83.33%</td>
<td data-value="6" class="abs high">5/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="66.67" class="pct medium">66.67%</td>
<td data-value="3" class="abs medium">2/3</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="4" class="abs medium">2/4</td>
<td data-value="83.33" class="pct high">83.33%</td>
<td data-value="6" class="abs high">5/6</td>
</tr>

<tr>
Expand Down Expand Up @@ -183,13 +183,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="68" class="abs low">0/68</td>
<td data-value="78" class="abs low">0/78</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="8" class="abs low">0/8</td>
<td data-value="10" class="abs low">0/10</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="12" class="abs low">0/12</td>
<td data-value="17" class="abs low">0/17</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="58" class="abs low">0/58</td>
<td data-value="67" class="abs low">0/67</td>
</tr>

</tbody>
Expand All @@ -200,7 +200,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Fri Apr 16 2021 05:35:38 GMT+0000 (Coordinated Universal Time)
at Tue Apr 20 2021 14:35:47 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
44 changes: 22 additions & 22 deletions docs/coverage/src/agent/brains/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1><a href="../../../index.html">All files</a> src/agent/brains</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">30.16% </span>
<span class="strong">26.76% </span>
<span class="quiet">Statements</span>
<span class='fraction'>19/63</span>
<span class='fraction'>19/71</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/4</span>
<span class='fraction'>0/6</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">21.74% </span>
<span class="strong">20.83% </span>
<span class="quiet">Functions</span>
<span class='fraction'>5/23</span>
<span class='fraction'>5/24</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">31.67% </span>
<span class="strong">27.94% </span>
<span class="quiet">Lines</span>
<span class='fraction'>19/60</span>
<span class='fraction'>19/68</span>
</div>


Expand Down Expand Up @@ -74,32 +74,32 @@ <h1><a href="../../../index.html">All files</a> src/agent/brains</h1>
</thead>
<tbody><tr>
<td class="file medium" data-value="random.brain.ts"><a href="random.brain.ts.html">random.brain.ts</a></td>
<td data-value="72.22" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 72%"></div><div class="cover-empty" style="width: 28%"></div></div>
<td data-value="68.42" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 68%"></div><div class="cover-empty" style="width: 32%"></div></div>
</td>
<td data-value="72.22" class="pct medium">72.22%</td>
<td data-value="18" class="abs medium">13/18</td>
<td data-value="68.42" class="pct medium">68.42%</td>
<td data-value="19" class="abs medium">13/19</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="2" class="abs low">0/2</td>
<td data-value="4" class="abs low">0/4</td>
<td data-value="55.56" class="pct medium">55.56%</td>
<td data-value="9" class="abs medium">5/9</td>
<td data-value="72.22" class="pct medium">72.22%</td>
<td data-value="18" class="abs medium">13/18</td>
<td data-value="68.42" class="pct medium">68.42%</td>
<td data-value="19" class="abs medium">13/19</td>
</tr>

<tr>
<td class="file low" data-value="szenario.brain.ts"><a href="szenario.brain.ts.html">szenario.brain.ts</a></td>
<td data-value="13.33" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 13%"></div><div class="cover-empty" style="width: 87%"></div></div>
<td data-value="11.54" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 11%"></div><div class="cover-empty" style="width: 89%"></div></div>
</td>
<td data-value="13.33" class="pct low">13.33%</td>
<td data-value="45" class="abs low">6/45</td>
<td data-value="11.54" class="pct low">11.54%</td>
<td data-value="52" class="abs low">6/52</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="2" class="abs low">0/2</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="14" class="abs low">0/14</td>
<td data-value="14.29" class="pct low">14.29%</td>
<td data-value="42" class="abs low">6/42</td>
<td data-value="15" class="abs low">0/15</td>
<td data-value="12.24" class="pct low">12.24%</td>
<td data-value="49" class="abs low">6/49</td>
</tr>

</tbody>
Expand All @@ -110,7 +110,7 @@ <h1><a href="../../../index.html">All files</a> src/agent/brains</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Fri Apr 16 2021 05:35:38 GMT+0000 (Coordinated Universal Time)
at Tue Apr 20 2021 14:35:47 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
38 changes: 28 additions & 10 deletions docs/coverage/src/agent/brains/random.brain.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">72.22% </span>
<span class="strong">68.42% </span>
<span class="quiet">Statements</span>
<span class='fraction'>13/18</span>
<span class='fraction'>13/19</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/2</span>
<span class='fraction'>0/4</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent


<div class='fl pad1y space-right2'>
<span class="strong">72.22% </span>
<span class="strong">68.42% </span>
<span class="quiet">Lines</span>
<span class='fraction'>13/18</span>
<span class='fraction'>13/19</span>
</div>


Expand Down Expand Up @@ -118,7 +118,13 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent
<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></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<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></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -155,8 +161,14 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -216,12 +228,18 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent
<span class="cstat-no" title="statement not covered" > this.logger.log(</span>
`Agent ${this.agent.id} with brain ${this.constructor.name} creates an order`,
);
&nbsp;
const operation =
<span class="cstat-no" title="statement not covered" > Math.random() &gt; 0.5 ? OperationType.BUY : OperationType.SELL;</span>
&nbsp;
<span class="cstat-no" title="statement not covered" > this.marketService.placeOrder({</span>
aktenId: this.stock,
price: Math.random() + v,
price:
v +
(operation === OperationType.SELL ? Math.random() : -Math.random()),
stockCount: Math.ceil(Math.random() * 100),
operation:
Math.random() &gt; 0.5 ? OperationType.BUY : OperationType.SELL,
operation,
&nbsp;
token: this.token,
});
});
Expand All @@ -247,7 +265,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/agent
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Fri Apr 16 2021 05:35:38 GMT+0000 (Coordinated Universal Time)
at Tue Apr 20 2021 14:35:47 GMT+0000 (Coordinated Universal Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Loading

0 comments on commit 8b835a0

Please sign in to comment.