From 7a7e459a1e0245d978893a9484262a701689d1d7 Mon Sep 17 00:00:00 2001 From: Kevin Pease Date: Fri, 24 May 2024 13:37:59 +0200 Subject: [PATCH] Fix path for xdg-open, add ./ for paths --- code-coverage.sh | 8 ++++---- stellar_rust_sdk/src/offers/mod.rs | 6 +++--- stellar_rust_sdk/src/order_book/mod.rs | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/code-coverage.sh b/code-coverage.sh index f612174..0386f12 100755 --- a/code-coverage.sh +++ b/code-coverage.sh @@ -1,5 +1,5 @@ -CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=stellar_rust_sdk/Cargo.toml -grcov . --binary-path stellar_rust_sdk/target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o stellar_rust_sdk/target/coverage/html -rm stellar_rust_sdk/*.profraw +CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=./stellar_rust_sdk/Cargo.toml +grcov . --binary-path ./stellar_rust_sdk/target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o ./stellar_rust_sdk/target/coverage/html +rm ./stellar_rust_sdk/*.profraw # open the coverage report in the browser -xdg-open target/coverage/html/index.html \ No newline at end of file +xdg-open ./stellar_rust_sdk/target/coverage/html/index.html \ No newline at end of file diff --git a/stellar_rust_sdk/src/offers/mod.rs b/stellar_rust_sdk/src/offers/mod.rs index 7ef2df8..ff85897 100644 --- a/stellar_rust_sdk/src/offers/mod.rs +++ b/stellar_rust_sdk/src/offers/mod.rs @@ -190,12 +190,12 @@ pub mod test { const BUYING_ASSET_TYPE: &str = "credit_alphanum12"; const BUYING_ASSET_CODE: &str = "EURCAllow"; const BUYING_ASSET_ISSUER: &str = "GA6HVGLFUF3BHHGR5CMYXIVZ3RYVUH5EUYAOAY4T3OKI5OQVIWVRK24R"; - const AMOUNT: &str = "922320116339.8175807"; + const AMOUNT: &str = "922278138224.9775807"; const PRICE_R_N: &u32 = &1; const PRICE_R_D: &u32 = &1; const PRICE: &str = "1.0000000"; - const LAST_MODIFIED_LEDGER: &u32 = &1526957; - const LAST_MODIFIED_TIME: &str = "2024-05-09T14:38:06Z"; + const LAST_MODIFIED_LEDGER: &u32 = &1762248; + const LAST_MODIFIED_TIME: &str = "2024-05-23T22:12:07Z"; let horizon_client = HorizonClient::new("https://horizon-testnet.stellar.org" diff --git a/stellar_rust_sdk/src/order_book/mod.rs b/stellar_rust_sdk/src/order_book/mod.rs index 0499655..aac907a 100644 --- a/stellar_rust_sdk/src/order_book/mod.rs +++ b/stellar_rust_sdk/src/order_book/mod.rs @@ -14,9 +14,9 @@ pub mod tests { #[tokio::test] async fn get_order_bookdetails() { - const BIDS_N: &u32 = &1000; - const BIDS_D: &u32 = &87; - const BIDS_PRICE: &str = "11.4942529"; + const BIDS_N: &u32 = &250000; + const BIDS_D: &u32 = &21749; + const BIDS_PRICE: &str = "11.4947814"; const BIDS_AMOUNT: &str = "2556626.8467920"; const ASKS_N: &u32 = &2299;