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

payjoin / rust-payjoin / 12921784855
83%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2025 03:38AM UTC
Jobs 1
Files 33
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

23 Jan 2025 03:36AM UTC coverage: 78.062% (+5.9%) from 72.12%
12921784855

push

github

web-flow
Introduce `directory` feature module (#502)

- Allow payjoin and payjoin-directory to share ShortId code.
- define directory::ENCAPSULATED_MESSAGE_BYTES: usize = 8192;

other constants (like tag size) seem more appropriate for bitcoin_hpke
or bitcoin_ohttp to define than for the directory module.

Close #418 

In order to allow `directory` to be used independetly, I needed to make
the `_core` feature compile `send` and `receive` modules, and made `v1`
and `v2` features export their feature modules explicitly. That way when
`directory` is enabled explicitly with no-default-features no other code
gets compiled.

Some exclusive v1 features are used for testing v2, so perhaps these
should be exported in `_test-util` as well i.e. `#[cfg(any(feature =
"v1", feature = "_test-util")]` in a follow up.

This also revealed some indirection in the `bech32` module,
where some of it is used for `directory` and some for `v2` OhttpKeys
serialization

133 of 147 new or added lines in 11 files covered. (90.48%)

4 existing lines in 2 files now uncovered.

3576 of 4581 relevant lines covered (78.06%)

1005.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.0
payjoin/src/directory.rs
1
90.54
-0.48% payjoin/src/receive/v1/mod.rs
1
20.0
0.0% payjoin/src/receive/v2/error.rs
2
0.0
payjoin/src/receive/v1/exclusive/error.rs
3
77.43
-0.42% payjoin-directory/src/lib.rs
3
95.16
payjoin/src/receive/v1/exclusive/mod.rs
3
86.43
0.0% payjoin/src/receive/v2/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
93.98
-0.57% payjoin/src/send/mod.rs
2
21.58
0.31% payjoin/src/receive/error.rs
Jobs
ID Job ID Ran Files Coverage
1 12921784855.1 23 Jan 2025 03:38AM UTC 33
78.06
GitHub Action Run
Source Files on build 12921784855
  • Tree
  • List 33
  • Changed 21
  • Source Changed 12
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12921784855
  • 220d996b on github
  • Prev Build on master (#12874640319)
  • Next Build on master (#12922010861)
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