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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Apr 2024 02:10PM UTC
Jobs 1
Files 11
Run time 1min
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

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 %.

1 of 1 new or added line in 1 file covered. (100.0%)

95 of 103 relevant lines covered (92.23%)

9.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8617169307.1 09 Apr 2024 02:10PM UTC 0
84.83
GitHub Action Run
Source Files on build 8617169307
Detailed source file information is not available for this build.
  • Back to Repo
  • 89f135f9 on github
  • Prev Build on main (#8615028709)
  • Next Build on main (#8617297507)
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