Skip to content

Commit

Permalink
Fix path for xdg-open, add ./ for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pease committed May 24, 2024
1 parent b863d7a commit 7a7e459
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions code-coverage.sh
Original file line number Diff line number Diff line change
@@ -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
xdg-open ./stellar_rust_sdk/target/coverage/html/index.html
6 changes: 3 additions & 3 deletions stellar_rust_sdk/src/offers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions stellar_rust_sdk/src/order_book/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a7e459

Please sign in to comment.