Skip to content

Commit d3ce668

Browse files
committed
chore: rm async funcs from tarpaulin checks
1 parent 74f6e17 commit d3ce668

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • src/bourso_api/src/client/transfer

src/bourso_api/src/client/transfer/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub enum TransferProgress {
2121
}
2222

2323
impl TransferProgress {
24+
#[cfg(not(tarpaulin_include))]
2425
pub fn step_number(&self) -> u8 {
2526
match self {
2627
TransferProgress::Validating => 1,
@@ -40,6 +41,7 @@ impl TransferProgress {
4041
10
4142
}
4243

44+
#[cfg(not(tarpaulin_include))]
4345
pub fn description(&self) -> &str {
4446
match self {
4547
TransferProgress::Validating => "Validating transfer parameters",
@@ -58,6 +60,7 @@ impl TransferProgress {
5860

5961
impl BoursoWebClient {
6062
/// Initialize the transfer and extract the transfer ID
63+
#[cfg(not(tarpaulin_include))]
6164
async fn init_transfer(&self, from_account: &str) -> Result<String> {
6265
let init_transfer_url = format!(
6366
"{}/compte/cav/{}/virements/immediat/nouveau",
@@ -89,6 +92,7 @@ impl BoursoWebClient {
8992
}
9093

9194
/// Extract the flow instance from the HTML response
95+
#[cfg(not(tarpaulin_include))]
9296
async fn extract_flow_instance(&self, url: &str) -> Result<String> {
9397
let res = self.client.get(url).send().await?;
9498

@@ -111,6 +115,7 @@ impl BoursoWebClient {
111115
}
112116

113117
/// Set the debit account (step 2)
118+
#[cfg(not(tarpaulin_include))]
114119
async fn set_debit_account(
115120
&self,
116121
from_account: &str,
@@ -141,6 +146,7 @@ impl BoursoWebClient {
141146
}
142147

143148
/// Set the credit account (step 3)
149+
#[cfg(not(tarpaulin_include))]
144150
async fn set_credit_account(
145151
&self,
146152
from_account: &str,
@@ -179,6 +185,7 @@ impl BoursoWebClient {
179185
}
180186

181187
/// Set the transfer amount (step 6)
188+
#[cfg(not(tarpaulin_include))]
182189
async fn set_transfer_amount(
183190
&self,
184191
from_account: &str,
@@ -212,6 +219,7 @@ impl BoursoWebClient {
212219
}
213220

214221
/// Submit step 7
222+
#[cfg(not(tarpaulin_include))]
215223
async fn submit_step_7(
216224
&self,
217225
from_account: &str,
@@ -246,6 +254,7 @@ impl BoursoWebClient {
246254
}
247255

248256
/// Set the transfer reason (step 10)
257+
#[cfg(not(tarpaulin_include))]
249258
async fn set_transfer_reason(
250259
&self,
251260
from_account: &str,
@@ -281,6 +290,7 @@ impl BoursoWebClient {
281290
}
282291

283292
/// Confirm and finalize the transfer (step 12)
293+
#[cfg(not(tarpaulin_include))]
284294
async fn confirm_transfer(
285295
&self,
286296
from_account: &str,

0 commit comments

Comments
 (0)