ConsenSysMesh / Stow-Smart-Contracts

Formerly Linnia-Smart-Contracts
https://stow-protocol.com/
MIT License
56 stars 39 forks source link

Add pause test for every pasuable function #47

Closed libertylocked closed 6 years ago

libertylocked commented 6 years ago
codecov-io commented 6 years ago

Codecov Report

Merging #47 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #47   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files           4        4           
  Lines         115      115           
  Branches       25       25           
=======================================
  Hits          111      111           
  Misses          4        4
Impacted Files Coverage Δ
contracts/LinniaRecords.sol 98.27% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dcf656a...9f9586f. Read the comment docs.

libertylocked commented 6 years ago

fixes #51 maybe

MaxBlaushild commented 6 years ago

Do we get any new functionality here? Or do we fix any bug?

libertylocked commented 6 years ago

Better coverage

On Fri, Jun 15, 2018, 10:49 AM Max Blaushild notifications@github.com wrote:

Do we get any new functionality here? Or do we fix any bug?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ConsenSys/Linnia-Smart-Contracts/pull/47#issuecomment-397645808, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXBggQ3xfEfu5tZhjCleJ1WCwcPU_NAks5t88lggaJpZM4Uo-0S .

godfreyhobbs commented 6 years ago

consider leaving whenNotPaused where is already exists.

Adding whenNotPaused to the internal method is not a problem. But I do not like removing whenNotPaused from the external/public methods. I would rather have the whenNotPaused as part of the public/external function signature. This is a way of self-documenting the code.

godfreyhobbs commented 6 years ago

Also do you know why test coverge has not increased? Coverage 96.52% 96.52%

libertylocked commented 6 years ago

line coverage doesn't change branch coverage ↑

godfreyhobbs commented 6 years ago

The branch coverage is unchanged at 25

Branches 25 25

Does our coverage tool not work?