[INFO] fetching crate barter 0.7.2... [INFO] testing barter-0.7.2 against try#c3758fdc4730d7700b25a13cccff296a08f42c00 for pr-91743 [INFO] extracting crate barter 0.7.2 into /workspace/builds/worker-119/source [INFO] validating manifest of crates.io crate barter 0.7.2 on toolchain c3758fdc4730d7700b25a13cccff296a08f42c00 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate barter 0.7.2 [INFO] finished tweaking crates.io crate barter 0.7.2 [INFO] tweaked toml for crates.io crate barter 0.7.2 written to /workspace/builds/worker-119/source/Cargo.toml [INFO] crate crates.io crate barter 0.7.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 039cc66fdef952599348486a940c055042857c172e5e1ac7e33f514744741188 [INFO] running `Command { std: "docker" "start" "-a" "039cc66fdef952599348486a940c055042857c172e5e1ac7e33f514744741188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "039cc66fdef952599348486a940c055042857c172e5e1ac7e33f514744741188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "039cc66fdef952599348486a940c055042857c172e5e1ac7e33f514744741188", kill_on_drop: false }` [INFO] [stdout] 039cc66fdef952599348486a940c055042857c172e5e1ac7e33f514744741188 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4598e6740e4131a5d3643a52c4c5e7037f54c2f6eb6fe6d22f074b9f0f00e6ab [INFO] running `Command { std: "docker" "start" "-a" "4598e6740e4131a5d3643a52c4c5e7037f54c2f6eb6fe6d22f074b9f0f00e6ab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling encode_unicode v0.3.6 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling tracing-core v0.1.24 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling combine v4.6.3 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling ta v0.4.0 [INFO] [stderr] Compiling rustls-native-certs v0.5.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling redis v0.20.2 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tungstenite v0.14.0 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-tungstenite v0.15.0 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling barter-data v0.3.2 [INFO] [stderr] Compiling prettytable-rs v0.8.0 [INFO] [stderr] Compiling barter v0.7.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.02s [INFO] running `Command { std: "docker" "inspect" "4598e6740e4131a5d3643a52c4c5e7037f54c2f6eb6fe6d22f074b9f0f00e6ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4598e6740e4131a5d3643a52c4c5e7037f54c2f6eb6fe6d22f074b9f0f00e6ab", kill_on_drop: false }` [INFO] [stdout] 4598e6740e4131a5d3643a52c4c5e7037f54c2f6eb6fe6d22f074b9f0f00e6ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b5db632341694df2031588a51b6589dad5ef99eb77d3fe42be4da273390f125 [INFO] running `Command { std: "docker" "start" "-a" "0b5db632341694df2031588a51b6589dad5ef99eb77d3fe42be4da273390f125", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling barter v0.7.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 16.46s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/barter-a6a64e17bea7948e) [INFO] [stderr] Executable tests/integration.rs (/opt/rustwide/target/debug/deps/integration-29aaa7cc552eb577) [INFO] running `Command { std: "docker" "inspect" "0b5db632341694df2031588a51b6589dad5ef99eb77d3fe42be4da273390f125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b5db632341694df2031588a51b6589dad5ef99eb77d3fe42be4da273390f125", kill_on_drop: false }` [INFO] [stdout] 0b5db632341694df2031588a51b6589dad5ef99eb77d3fe42be4da273390f125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d9eb173b808927c44d1a6c0ca1f9b5ff91ad811880d1da75ef55b4c11b05b9d2 [INFO] running `Command { std: "docker" "start" "-a" "d9eb173b808927c44d1a6c0ca1f9b5ff91ad811880d1da75ef55b4c11b05b9d2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.21s [INFO] [stdout] running 100 tests [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/barter-a6a64e17bea7948e) [INFO] [stdout] test data::handler::historical::tests::should_continue_with_symbol_data_remaining ... ok [INFO] [stderr] Running tests/integration.rs (/opt/rustwide/target/debug/deps/integration-29aaa7cc552eb577) [INFO] [stdout] test data::handler::historical::tests::should_not_continue_with_no_symbol_data_remaining ... ok [INFO] [stderr] Doc-tests barter [INFO] [stdout] test data::tests::test_builder_incomplete_attributes_validation ... ok [INFO] [stdout] test execution::simulated::tests::should_calculate_fill_value_gross_correctly ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_enter_long_position_with_non_zero_quantity ... ok [INFO] [stdout] test execution::simulated::tests::should_calculate_simulated_fees_correctly ... ok [INFO] [stdout] test execution::simulated::tests::should_generate_ok_fill_event_with_valid_order_event_provided ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_enter_long_position_with_correct_quantity ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_exit_open_short_position ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_no_order_with_position_and_no_cash ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_exit_open_long_position ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_enter_short_position_with_with_non_zero_quantity ... ok [INFO] [stdout] test portfolio::allocator::tests::should_allocate_order_to_enter_short_position_with_correct_quantity ... ok [INFO] [stdout] test execution::simulated::tests::should_calculate_fill_value_gross_correctly_with_negative_order_quantity_provided ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_order_close_short_with_short_position_and_input_net_close_short_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_exit_order_with_long_position_open ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_order_close_long_with_long_position_and_input_net_close_long_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_no_exit_order_when_no_open_position_to_exit ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_exit_order_with_short_position_open ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_close_short ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_order_long_with_no_position_and_input_net_long_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_close_short_with_conflicting_signals ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_no_order_with_no_position_and_no_cash ... ok [INFO] [stdout] test portfolio::position::tests::calculate_avg_price_gross_correctly_with_negative_quantity ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_exiting_long_position_in_loss ... ok [INFO] [stdout] test portfolio::position::tests::calculate_avg_price_gross_correctly_with_positive_quantity ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_short ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_market_with_short_position_decreasing_in_value ... ok [INFO] [stdout] test portfolio::portfolio::tests::generate_order_short_with_no_position_and_input_net_short_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_market_with_short_position_increasing_in_value ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_none_with_some_short_position_and_short_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_none_with_conflicting_signals ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_none_with_some_long_position_and_long_signal ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_close_long_with_conflicting_signals ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_market_with_long_position_increasing_in_value ... ok [INFO] [stdout] test portfolio::position::tests::calculate_profit_loss_return ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_exiting_long_position_in_profit ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_long ... ok [INFO] [stdout] test portfolio::portfolio::tests::parse_signal_decisions_to_net_close_long ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_exiting_short_position_in_profit ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_exiting_short_position_in_loss ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_entering_long_position ... ok [INFO] [stdout] test portfolio::position::tests::calculate_realised_profit_loss ... ok [INFO] [stdout] test portfolio::position::tests::calculate_unreal_profit_loss ... ok [INFO] [stdout] test portfolio::position::tests::determine_exit_decision ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_market_with_long_position_decreasing_in_value ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_and_return_err_with_negative_quantity_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_and_return_err_with_close_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_and_return_err_with_close_short_decision_provided ... ok [INFO] [stdout] test portfolio::portfolio::tests::update_from_fill_entering_short_position ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_with_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_and_return_err_with_positive_quantity_short_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::enter_new_position_with_short_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::exit_long_position_with_negative_real_pnl ... ok [INFO] [stdout] test portfolio::position::tests::exit_long_position_with_positive_real_pnl ... ok [INFO] [stdout] test portfolio::position::tests::exit_short_position_with_negative_real_pnl ... ok [INFO] [stdout] test portfolio::position::tests::exit_short_position_with_positive_real_pnl ... ok [INFO] [stdout] test portfolio::position::tests::exit_short_position_with_short_entry_fill_and_return_err ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_and_return_err_with_close_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_and_return_err_with_negative_quantity_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_and_return_err_with_positive_quantity_short_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_as_long_with_positive_quantity_long_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::exit_long_position_with_long_entry_fill_and_return_err ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_as_short_with_negative_quantity_short_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::position_exit_try_from_open_position ... ok [INFO] [stdout] test portfolio::position::tests::parse_entry_direction_and_return_err_with_close_short_decision_provided ... ok [INFO] [stdout] test portfolio::position::tests::position_exit_try_from_exited_position ... ok [INFO] [stdout] test portfolio::position::tests::position_update_from_position ... ok [INFO] [stdout] test portfolio::position::tests::update_long_position_so_unreal_pnl_decreases ... ok [INFO] [stdout] test portfolio::position::tests::update_long_position_so_unreal_pnl_increases ... ok [INFO] [stdout] test statistic::algorithm::tests::calculate_population_variance ... ok [INFO] [stdout] test portfolio::position::tests::update_short_position_so_unreal_pnl_decreases ... ok [INFO] [stdout] test statistic::dispersion::tests::update_dispersion ... ok [INFO] [stdout] test portfolio::position::tests::update_short_position_so_unreal_pnl_increases ... ok [INFO] [stdout] test statistic::algorithm::tests::calculate_sample_variance ... ok [INFO] [stdout] test statistic::algorithm::tests::calculate_mean ... ok [INFO] [stdout] test statistic::algorithm::tests::calculate_recurrence_relation_m ... ok [INFO] [stdout] test statistic::dispersion::tests::update_range ... ok [INFO] [stdout] test statistic::metric::drawdown::tests::avg_drawdown_update ... ok [INFO] [stdout] test statistic::metric::drawdown::tests::max_drawdown_update ... ok [INFO] [stdout] test statistic::metric::ratio::tests::calculate_daily_ratios ... ok [INFO] [stdout] test statistic::metric::ratio::tests::calmar_ratio_update ... ok [INFO] [stdout] test statistic::metric::drawdown::tests::drawdown_update ... ok [INFO] [stdout] test statistic::metric::ratio::tests::calculate_annual_ratios ... ok [INFO] [stdout] test statistic::metric::ratio::tests::sortino_ratio_update ... ok [INFO] [stdout] test statistic::summary::data::tests::update_data_summary_with_position ... ok [INFO] [stdout] test statistic::metric::ratio::tests::sharpe_ratio_update ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_not_entry ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_not_long ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_not_short ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_not_exit ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_entry ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_long ... ok [INFO] [stdout] test strategy::strategy::tests::should_generate_signals_map_containing_long_and_close_short_decision ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_short ... ok [INFO] [stdout] test statistic::summary::pnl::tests::update_trading_session_duration_with_exited_position ... ok [INFO] [stdout] test statistic::summary::pnl::tests::update_pnl_return_summary ... ok [INFO] [stdout] test statistic::summary::pnl::tests::update_trading_session_duration_with_non_exited_position ... ok [INFO] [stdout] test strategy::tests::should_return_decision_is_exit ... ok [INFO] [stdout] test statistic::metric::tests::equity_point_update ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 100 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] +--------------------+--------+------+--------+--------------+----------------+-------------+------------------+------------------+-------------+--------------+--------------+---------------+--------------+--------------+-------------------+---------------+--------------------+ [INFO] [stdout] | | Trades | Wins | Losses | Trading Days | Trades Per Day | Mean Return | Std. Dev. Return | Loss Mean Return | Biggest Win | Biggest Loss | Sharpe Ratio | Sortino Ratio | Calmar Ratio | Max Drawdown | Max Drawdown Days | Avg. Drawdown | Avg. Drawdown Days | [INFO] [stdout] +====================+========+======+========+==============+================+=============+==================+==================+=============+==============+==============+===============+==============+==============+===================+===============+====================+ [INFO] [stdout] | binance | btc_usdt | 0 | 0 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0 | 0.000 | 0 | [INFO] [stdout] +--------------------+--------+------+--------+--------------+----------------+-------------+------------------+------------------+-------------+--------------+--------------+---------------+--------------+--------------+-------------------+---------------+--------------------+ [INFO] [stdout] | Total | 0 | 0 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0 | 0.000 | 0 | [INFO] [stdout] +--------------------+--------+------+--------+--------------+----------------+-------------+------------------+------------------+-------------+--------------+--------------+---------------+--------------+--------------+-------------------+---------------+--------------------+ [INFO] [stdout] test engine_with_historic_data_stops_after_candles_finished ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 147) ... ok [INFO] [stdout] test src/lib.rs - (line 43) ... ok [INFO] [stdout] test src/lib.rs - (line 170) ... ok [INFO] [stdout] test src/lib.rs - (line 75) ... ok [INFO] [stdout] test src/lib.rs - (line 93) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.92s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d9eb173b808927c44d1a6c0ca1f9b5ff91ad811880d1da75ef55b4c11b05b9d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9eb173b808927c44d1a6c0ca1f9b5ff91ad811880d1da75ef55b4c11b05b9d2", kill_on_drop: false }` [INFO] [stdout] d9eb173b808927c44d1a6c0ca1f9b5ff91ad811880d1da75ef55b4c11b05b9d2