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

payjoin / rust-payjoin / 16392628297

19 Jul 2025 08:51PM UTC coverage: 85.708% (-0.09%) from 85.8%
16392628297

Pull #768

github

web-flow
Merge deeb8489d into 16c13d6e1
Pull Request #768: Add PartialEq/Eq to errors for easier comparison

74 of 100 new or added lines in 9 files covered. (74.0%)

2 existing lines in 2 files now uncovered.

7742 of 9033 relevant lines covered (85.71%)

518.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/payjoin/src/core/error.rs
1
use std::{error, fmt};
2

3
#[derive(Debug)]
4
pub struct ImplementationError(Box<dyn error::Error + Send + Sync>);
5

6
impl ImplementationError {
7
    pub fn new(e: impl error::Error + Send + Sync + 'static) -> Self {
4✔
8
        ImplementationError(Box::new(e))
4✔
9
    }
4✔
10
}
11

12
impl fmt::Display for ImplementationError {
13
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.0.fmt(f) }
12✔
14
}
15

16
impl error::Error for ImplementationError {
NEW
17
    fn source(&self) -> Option<&(dyn error::Error + 'static)> { Some(self.0.as_ref()) }
×
18
}
19

20
impl PartialEq for ImplementationError {
NEW
21
    fn eq(&self, _: &Self) -> bool { false }
×
22
}
23

24
impl Eq for ImplementationError {}
25

26
impl From<Box<dyn error::Error + Send + Sync>> for ImplementationError {
27
    fn from(e: Box<dyn error::Error + Send + Sync>) -> Self { ImplementationError(e) }
23✔
28
}
29

30
impl From<&str> for ImplementationError {
31
    fn from(e: &str) -> Self {
23✔
32
        let error = Box::<dyn error::Error + Send + Sync>::from(e);
23✔
33
        ImplementationError::from(error)
23✔
34
    }
23✔
35
}
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