Skip to content

Commit

Permalink
Merge pull request #240 from CMTA/complete-freeze-test
Browse files Browse the repository at this point in the history
Add missing tests for EnforcementModule
  • Loading branch information
rya-sge authored Nov 10, 2023
2 parents 6a2005e + ad3d026 commit 94954fb
Show file tree
Hide file tree
Showing 85 changed files with 546 additions and 549 deletions.
2 changes: 1 addition & 1 deletion doc/general/test/coverage/contracts/CMTAT_PROXY.sol.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion doc/general/test/coverage/contracts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion doc/general/test/coverage/contracts/interfaces/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion doc/general/test/coverage/contracts/libraries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
50 changes: 25 additions & 25 deletions doc/general/test/coverage/contracts/modules/CMTAT_BASE.sol.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h1>
<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-yes">282×</span>
<span class="cline-any cline-yes">281×</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 @@ -370,35 +370,35 @@ <h1>
<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-yes">282×</span>
<span class="cline-any cline-yes">282×</span>
<span class="cline-any cline-yes">281×</span>
<span class="cline-any cline-yes">281×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">282×</span>
<span class="cline-any cline-yes">281×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">282×</span>
<span class="cline-any cline-yes">282×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">281×</span>
<span class="cline-any cline-yes">281×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</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-yes">279×</span>
<span class="cline-any cline-yes">278×</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-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</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 All @@ -407,12 +407,12 @@ <h1>
<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-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-yes">278×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">279×</span>
<span class="cline-any cline-yes">278×</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 @@ -457,10 +457,10 @@ <h1>
<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-yes">355×</span>
<span class="cline-any cline-yes">359×</span>
<span class="cline-any cline-yes">34×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">321×</span>
<span class="cline-any cline-yes">325×</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 All @@ -478,7 +478,7 @@ <h1>
<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-yes">1020×</span>
<span class="cline-any cline-yes">1029×</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 @@ -514,7 +514,7 @@ <h1>
Add this import in case you add the SnapshotModule
import "./wrapper/optional/SnapshotModule.sol";
*/
import "./wrapper/controller/ValidationModule.sol";
import "./wrapper/controllers/ValidationModule.sol";
import "./wrapper/extensions/MetaTxModule.sol";
import "./wrapper/extensions/DebtModule/DebtBaseModule.sol";
import "./wrapper/extensions/DebtModule/CreditEventsModule.sol";
Expand Down Expand Up @@ -727,7 +727,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion doc/general/test/coverage/contracts/modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ <h1>
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">63.64% </span>
<span class="strong">81.82% </span>
<span class="quiet">Statements</span>
<span class='fraction'>7/11</span>
<span class='fraction'>9/11</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">37.5% </span>
<span class="strong">62.5% </span>
<span class="quiet">Branches</span>
<span class='fraction'>3/8</span>
<span class='fraction'>5/8</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">80% </span>
<span class="quiet">Functions</span>
<span class='fraction'>4/5</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">69.23% </span>
<span class="strong">84.62% </span>
<span class="quiet">Lines</span>
<span class='fraction'>9/13</span>
<span class='fraction'>11/13</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line high'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
Expand Down Expand Up @@ -194,7 +194,7 @@ <h1>
<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-yes">846×</span>
<span class="cline-any cline-yes">862×</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 All @@ -207,12 +207,12 @@ <h1>
<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-yes">16×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">22×</span>
<span class="cline-any cline-yes"></span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">16×</span>
<span class="cline-any cline-yes">16×</span>
<span class="cline-any cline-yes">16×</span>
<span class="cline-any cline-yes">20×</span>
<span class="cline-any cline-yes">20×</span>
<span class="cline-any cline-yes">20×</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 All @@ -224,13 +224,13 @@ <h1>
<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-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes"></span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">6×</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 @@ -303,8 +303,8 @@ <h1>
address account,
string calldata reason
) internal virtual returns (bool) {
<span class="missing-if-branch" title="if path not taken" >I</span>if (_frozen[account]) {
<span class="cstat-no" title="statement not covered" > return false;</span>
if (_frozen[account]) {
return false;
}
_frozen[account] = true;
emit Freeze(_msgSender(), account, reason, reason);
Expand All @@ -320,8 +320,8 @@ <h1>
address account,
string calldata reason
) internal virtual returns (bool) {
<span class="missing-if-branch" title="if path not taken" >I</span>if (!_frozen[account]) {
<span class="cstat-no" title="statement not covered" > return false;</span>
if (!_frozen[account]) {
return false;
}
_frozen[account] = false;
emit Unfreeze(_msgSender(), account, reason, reason);
Expand All @@ -337,7 +337,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>
<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-yes">365×</span>
<span class="cline-any cline-yes">364×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Sep 20 2023 15:01:20 GMT+0200 (Central European Summer Time)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 05 2023 13:26:38 GMT+0200 (Central European Summer Time)
</div>
</div>
<script src="../../../prettify.js"></script>
Expand Down
Loading

0 comments on commit 94954fb

Please sign in to comment.