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

sgerrand / ex_deputy / 26501519978
100%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 08:59AM UTC
Jobs 1
Files 13
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

27 May 2026 08:59AM UTC coverage: 99.065% (+0.06%) from 99.003%
26501519978

push

github

sgerrand
feat(constants): add defguard predicates alongside value accessors

Previously every constant under `Deputy.Constants.*` was a plain `def`,
which meant the values could not be used in guards or `case` clauses
that pattern-matched against the named code.

Hoist each value into a module attribute and add a matching
`defguard is_<name>/1`. The existing value accessors remain unchanged
so callers building request payloads still call e.g.
`Deputy.Constants.Gender.male/0`. New code can `import` the module and
write:

    case status do
      s when is_approved(s) -> :approved
      s when is_pending(s) -> :pending
    end

Doctests and a guard-clause test cover the new API.

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

318 of 321 relevant lines covered (99.07%)

14.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26501519978.1 27 May 2026 08:59AM UTC 13
99.07
GitHub Action Run
Source Files on build 26501519978
  • Tree
  • List 13
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26501519978
  • 8516e9f8 on github
  • Prev Build on main (#26500192526)
  • Next Build on main (#26501924285)
  • Delete
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