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

payjoin / rust-payjoin / 13825023058 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 13 Mar 2025 01:32AM UTC
Files 42
Run time 1s
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

13 Mar 2025 01:30AM UTC coverage: 80.189% (+0.5%) from 79.738%
13825023058.1

push

github

web-flow
Add additional tests for v2 send module (#554)

Relates to #539 

This is an attempt to both add some additional test vectors and to
create some headway on the tests deficiencies caught by cargo mutants
ahead of time.

I have tried my best to keep the tests in accordance with the design
laid out in #487

Below is the cargo mutants output for `send/v2/mod.rs` as of
df30f3b9d

<details>

```
caught   payjoin/src/send/v2/mod.rs:203:5: replace serialize_v2_body -> Result<Vec<u8>, CreateRequestError> with Ok(vec![]) in 8.7s build + 1.1s test
caught   payjoin/src/send/v2/mod.rs:203:5: replace serialize_v2_body -> Result<Vec<u8>, CreateRequestError> with Ok(vec![1]) in 5.9s build + 1.1s test
***MISSED   payjoin/src/send/v2/mod.rs:146:45: replace > with == in Sender::extract_v2 in 10.2s build + 1.5s test
caught   payjoin/src/send/v2/mod.rs:203:5: replace serialize_v2_body -> Result<Vec<u8>, CreateRequestError> with Ok(vec![0]) in 8.5s build + 1.1s test
***MISSED   payjoin/src/send/v2/mod.rs:289:9: replace V2GetContext::process_response -> Result<Option<Psbt>, ResponseError> with Ok(None) in 8.6s build + 1.2s test
caught   payjoin/src/send/v2/mod.rs:146:45: replace > with < in Sender::extract_v2 in 66.0s build + 0.6s test
17 mutants tested in 1m 32s: 2 missed, 4 caught, 11 unviable
````

Note the 2 main improvements that can be made are for creating a test
for `process_response` and catching the
`test_extract_v2_fails_when_expired` slightly better

</details>

4659 of 5810 relevant lines covered (80.19%)

795.23 hits per line

Source Files on job 13825023058.1
  • Tree
  • List 42
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13825023058
  • 47cbbe96 on github
  • Prev Job for on master (#13820375099.1)
  • Next Job for on master (#13825165112.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