• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-modules / 8617169307 / 1
100%
master: 85%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Apr 2024 02:10PM UTC
Files 11
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2024 02:09PM UTC coverage: 84.828% (+1.8%) from 82.993%
8617169307.1

push

github

web-flow
Full Coverage of `SafeWebAuthnSignerFactory` Contract (#373)

Fixes #365 

This PR adds missing branch coverage for the `SafeWebAuthnSignerFactory`
contract so that it is fully covered.

Note that we changed a `require` to an `assert`. This was prompted by
the Solidity coverage tool complaining that all paths weren't taken.
However, having that path not be taken would imply that the address
derivation for `CREATE2` to not function as expected, so should never
happen on EVM chains (note to self, do we require a slightly different
contract for zkSync?). Looking through the Solidity documentation, I
found that `assert` was more applicable here, and luckily the coverage
tool does not expect the negative path to be explored. From the docs:

> Assert should only be used to test for internal errors, and to check
invariants. Properly functioning code should never create a Panic, not
even on invalid external input. If this happens, then there is a bug in
your contract which you should fix. Language analysis tools can evaluate
your contract to identify the conditions and function calls which will
cause a Panic.

According to this description, this is a exemplar use of the `assert`
builtin.

28 of 42 branches covered (66.67%)

Branch coverage included in aggregate %.

95 of 103 relevant lines covered (92.23%)

9.09 hits per line

Source Files on job 8617169307.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 8617169307
  • 89f135f9 on github
  • Prev Job for on main (#8615028709.1)
  • Next Job for on main (#8617297507.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc