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

bitcoindevkit / bdk / 9519613010

14 Jun 2024 04:52PM CUT coverage: 83.312% (+0.2%) from 83.064%
9519613010

Pull #1473

github

web-flow
Merge feb27df18 into bc420923c
Pull Request #1473: Remove `persist` submodule

58 of 64 new or added lines in 5 files covered. (90.63%)

1 existing line in 1 file now uncovered.

11128 of 13357 relevant lines covered (83.31%)

17626.96 hits per line

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

0.0
/crates/sqlite/src/lib.rs
1
#![doc = include_str!("../README.md")]
2
// only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined
3
#![cfg_attr(docsrs, feature(doc_cfg))]
4

5
mod schema;
6
mod store;
7

8
use bdk_chain::bitcoin::Network;
9
pub use rusqlite;
10
pub use store::Store;
11

12
/// Error that occurs while reading or writing change sets with the SQLite database.
13
#[derive(Debug)]
14
pub enum Error {
15
    /// Invalid network, cannot change the one already stored in the database.
16
    Network { expected: Network, given: Network },
17
    /// SQLite error.
18
    Sqlite(rusqlite::Error),
19
}
20

21
impl core::fmt::Display for Error {
22
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
×
23
        match self {
×
24
            Self::Network { expected, given } => write!(
×
25
                f,
×
26
                "network error trying to read or write change set, expected {}, given {}",
×
27
                expected, given
×
28
            ),
×
29
            Self::Sqlite(e) => write!(f, "sqlite error reading or writing changeset: {}", e),
×
30
        }
31
    }
×
32
}
33

34
impl std::error::Error for Error {}
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

© 2025 Coveralls, Inc