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

divviup / divviup-api / 12741016175

13 Jan 2025 05:08AM UTC coverage: 55.774% (-0.2%) from 55.925%
12741016175

Pull #1493

github

web-flow
Merge 66aa8f0f2 into 500555ff5
Pull Request #1493: Bump alpine from 3.21.0 to 3.21.2

3878 of 6953 relevant lines covered (55.77%)

86.06 hits per line

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

77.78
/test-support/src/api_mocks.rs
1
use super::{ClientLogs, AUTH0_URL, POSTMARK_URL};
2
use trillium_macros::Handler;
3

4
#[derive(Handler, Debug)]
×
5
pub struct ApiMocks {
6
    #[handler]
7
    handler: (ClientLogs, divviup_api::api_mocks::ApiMocks),
8
    client_logs: ClientLogs,
9
}
10

11
impl Default for ApiMocks {
12
    fn default() -> Self {
×
13
        Self::new()
×
14
    }
×
15
}
16

17
impl ApiMocks {
18
    pub fn new() -> Self {
280✔
19
        let client_logs = ClientLogs::default();
280✔
20

280✔
21
        Self {
280✔
22
            handler: (
280✔
23
                client_logs.clone(),
280✔
24
                divviup_api::api_mocks::ApiMocks::new(POSTMARK_URL, AUTH0_URL),
280✔
25
            ),
280✔
26
            client_logs,
280✔
27
        }
280✔
28
    }
280✔
29

30
    pub fn client_logs(&self) -> ClientLogs {
280✔
31
        self.client_logs.clone()
280✔
32
    }
280✔
33
}
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