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

input-output-hk / catalyst-libs / 14877908333
67%

Build:
DEFAULT BRANCH: main
Ran 07 May 2025 07:47AM UTC
Jobs 1
Files 177
Run time 5min
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

07 May 2025 07:41AM UTC coverage: 65.558% (+0.1%) from 65.449%
14877908333

push

github

web-flow
feat(rust/catalyst-types): change RoleIndex to enum (#283)

* feat(rust/catalyst-types): change RoleIndex to enum

This commit introduces RoleIndex as enum for a better static control
over the logical variants of the type.

closes #277

* fmt

* fix lints

* update display fmt for key signing

* rename RoleIndex to RoleId

* fix incorrect test vector

* fix examples

* replace RoleNumber with RoleId

* remove validate_role_numbers

The role numbers are now statically defined so an invalid one cannot exist.

* fix post-merge conflicts

* update conversion

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com>

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com>

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com>

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com>

* use strum

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: Alex Pozhylenkov <leshiy12345678@gmail.com>

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: Alex Pozhylenkov <leshiy12345678@gmail.com>

* add custom role id as any unknown u8

* Update rust/catalyst-types/src/id_uri/role_index.rs

Co-authored-by: Alex Pozhylenkov <leshiy12345678@gmail.com>

* rename error type

* move proptest to attr-macro

* add test to key rotation cert pk generation

---------

Co-authored-by: Steven Johnson <stevenj@users.noreply.github.com>
Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com>
Co-authored-by: Alex Pozhylenkov <leshiy12345678@gmail.com>

80 of 87 new or added lines in 12 files covered. (91.95%)

9 existing lines in 3 files now uncovered.

10844 of 16541 relevant lines covered (65.56%)

2465.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
65.48
0.0% rust/rbac-registration/src/cardano/cip509/cip509.rs
1
85.36
6.16% rust/rbac-registration/src/registration/cardano/mod.rs
5
82.86
7.86% rust/catalyst-types/src/id_uri/role_index.rs

Uncovered Existing Lines

Lines Coverage ∆ File
3
70.83
-6.25% rust/catalyst-types/src/hash_wrapper.rs
3
79.69
0.0% rust/catalyst-types/src/id_uri/mod.rs
3
80.17
-2.59% rust/signed_doc/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 rust-unit-test - 14877908333.1 07 May 2025 07:47AM UTC 177
65.56
GitHub Action Run
Source Files on build 14877908333
  • Tree
  • List 177
  • Changed 16
  • Source Changed 13
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14877908333
  • 23ece120 on github
  • Prev Build on main (#14857275602)
  • Next Build on main (#14884846524)
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