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

ergoplatform / sigma-rust / 19957094785

05 Dec 2025 08:23AM UTC coverage: 86.918% (+8.5%) from 78.463%
19957094785

Pull #837

github

web-flow
Merge dec08367a into 2f840d387
Pull Request #837: Split TransactionHintsBag hints properly

44 of 53 new or added lines in 13 files covered. (83.02%)

1621 existing lines in 221 files now uncovered.

27453 of 31585 relevant lines covered (86.92%)

253204.4 hits per line

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

92.31
/ergo-rest/src/api.rs
1
//! REST API for the services in Ergo ecosystem (node, explorer, etc.)
2

3
use reqwest::{header::CONTENT_TYPE, Client, RequestBuilder};
4

5
use crate::NodeConf;
6

7
pub mod node;
8
mod peer_discovery_internals;
9

10
fn set_req_headers(rb: RequestBuilder, node: NodeConf) -> RequestBuilder {
1,668✔
11
    let rb = rb
1,668✔
12
        .header("accept", "application/json")
1,668✔
13
        .header("api_key", node.get_node_api_header())
1,668✔
14
        .header(CONTENT_TYPE, "application/json");
1,668✔
15
    if let Some(t) = node.timeout {
1,668✔
16
        rb.timeout(t)
1,668✔
17
    } else {
NEW
18
        rb
×
19
    }
20
}
1,668✔
21

22
fn build_client() -> Result<Client, reqwest::Error> {
1,668✔
23
    let builder = reqwest::Client::builder();
1,668✔
24
    builder.build()
1,668✔
25
}
1,668✔
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