From 47f5a8b6065654e790770356a2b9b2dd6a0f5db9 Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Fri, 25 Aug 2023 20:02:09 +0100 Subject: [PATCH] fix: fix snapshot tests --- Cargo.lock | 189 ------------------ Cargo.toml | 1 - ...ses__raw_mode__bi_directional_traffic.snap | 13 ++ ...tiple_connections_from_remote_address.snap | 14 ++ ...of_traffic_from_different_connections.snap | 15 ++ ...ets_of_traffic_from_single_connection.snap | 13 ++ ...e_processes_with_multiple_connections.snap | 22 ++ ...sts__cases__raw_mode__no_resolve_mode.snap | 24 +++ ...s__raw_mode__one_ip_packet_of_traffic.snap | 13 ++ ...ases__raw_mode__one_packet_of_traffic.snap | 13 ++ ...one_process_with_multiple_connections.snap | 14 ++ ...ained_traffic_from_multiple_processes.snap | 24 +++ ...rom_multiple_processes_bi_directional.snap | 24 +++ ...e__sustained_traffic_from_one_process.snap | 18 ++ ...es__raw_mode__traffic_with_host_names.snap | 24 +++ ...ests__cases__ui__basic_only_addresses.snap | 55 +++++ ...ts__cases__ui__basic_only_connections.snap | 55 +++++ ...ests__cases__ui__basic_only_processes.snap | 55 +++++ ..._ui__basic_processes_with_dns_queries.snap | 55 +++++ ...ich__tests__cases__ui__basic_startup.snap} | 58 +++--- ..._cases__ui__bi_directional_traffic-2.snap} | 8 +- ...s__cases__ui__bi_directional_traffic.snap} | 58 +++--- ..._layout_full_width_under_30_height-2.snap} | 12 +- ...i__layout_full_width_under_30_height.snap} | 10 +- ...layout_under_120_width_full_height-2.snap} | 20 +- ...__layout_under_120_width_full_height.snap} | 14 +- ...ut_under_120_width_under_30_height-2.snap} | 12 +- ...yout_under_120_width_under_30_height.snap} | 8 +- ...yout_under_50_width_under_50_height-2.snap | 54 +++++ ...layout_under_50_width_under_50_height.snap | 54 +++++ ...yout_under_70_width_under_30_height-2.snap | 34 ++++ ...layout_under_70_width_under_30_height.snap | 34 ++++ ...le_connections_from_remote_address-2.snap} | 10 +- ...iple_connections_from_remote_address.snap} | 58 +++--- ..._traffic_from_different_connections-2.snap | 55 +++++ ...of_traffic_from_different_connections.snap | 55 +++++ ..._of_traffic_from_single_connection-2.snap} | 8 +- ...ets_of_traffic_from_single_connection.snap | 55 +++++ ...processes_with_multiple_connections-2.snap | 55 +++++ ...e_processes_with_multiple_connections.snap | 55 +++++ ...__tests__cases__ui__no_resolve_mode-2.snap | 55 +++++ ...h__tests__cases__ui__no_resolve_mode.snap} | 12 +- ...s__cases__ui__one_packet_of_traffic-2.snap | 55 +++++ ...sts__cases__ui__one_packet_of_traffic.snap | 55 +++++ ..._process_with_multiple_connections-2.snap} | 10 +- ...one_process_with_multiple_connections.snap | 55 +++++ ...__tests__cases__ui__pause_by_space-2.snap} | 8 +- ...__tests__cases__ui__pause_by_space-3.snap} | 4 +- ...ich__tests__cases__ui__pause_by_space.snap | 55 +++++ ...tests__cases__ui__rearranged_by_tab-2.snap | 55 +++++ ...ests__cases__ui__rearranged_by_tab-3.snap} | 14 +- ...tests__cases__ui__rearranged_by_tab-4.snap | 55 +++++ ...tests__cases__ui__rearranged_by_tab-5.snap | 55 +++++ ...__tests__cases__ui__rearranged_by_tab.snap | 55 +++++ ...ed_traffic_from_multiple_processes-2.snap} | 12 +- ...ained_traffic_from_multiple_processes.snap | 55 +++++ ...m_multiple_processes_bi_directional-2.snap | 55 +++++ ...rom_multiple_processes_bi_directional.snap | 55 +++++ ...iple_processes_bi_directional_total-2.snap | 55 +++++ ...ltiple_processes_bi_directional_total.snap | 55 +++++ ...affic_from_multiple_processes_total-2.snap | 55 +++++ ...traffic_from_multiple_processes_total.snap | 55 +++++ ...sustained_traffic_from_one_process-2.snap} | 8 +- ...i__sustained_traffic_from_one_process.snap | 55 +++++ ...ined_traffic_from_one_process_total-2.snap | 55 +++++ ...tained_traffic_from_one_process_total.snap | 55 +++++ ...cases__ui__traffic_with_host_names-2.snap} | 12 +- ...s__cases__ui__traffic_with_host_names.snap | 55 +++++ ...cases__ui__traffic_with_winch_event-2.snap | 55 +++++ ...ases__ui__traffic_with_winch_event-3.snap} | 8 +- ...__cases__ui__traffic_with_winch_event.snap | 55 +++++ ...cases__ui__truncate_long_hostnames-2.snap} | 12 +- ...s__cases__ui__truncate_long_hostnames.snap | 55 +++++ ...es__ui__two_packets_only_addresses-2.snap} | 8 +- ...cases__ui__two_packets_only_addresses.snap | 55 +++++ ...s__ui__two_packets_only_connections-2.snap | 55 +++++ ...ses__ui__two_packets_only_connections.snap | 55 +++++ ...ses__ui__two_packets_only_processes-2.snap | 55 +++++ ...cases__ui__two_packets_only_processes.snap | 55 +++++ ...s__ui__two_windows_split_horizontally.snap | 55 +++++ ...es__ui__two_windows_split_vertically.snap} | 14 +- ..._layout_under_120_width_full_height-2.snap | 55 ----- ...s__layout_under_120_width_full_height.snap | 55 ----- ..._layout_under_150_width_full_height-2.snap | 55 ----- ...s__layout_under_150_width_full_height.snap | 55 ----- ...out_under_150_width_under_30_height-2.snap | 34 ---- ...ayout_under_150_width_under_30_height.snap | 34 ---- ...of_traffic_from_different_connections.snap | 55 ----- ...ets_of_traffic_from_single_connection.snap | 55 ----- ...processes_with_multiple_connections-2.snap | 55 ----- ...e_processes_with_multiple_connections.snap | 55 ----- .../snapshots/tests__no_resolve_mode.snap | 55 ----- .../tests__one_packet_of_traffic.snap | 55 ----- ...e_process_with_multiple_connections-2.snap | 55 ----- ...one_process_with_multiple_connections.snap | 55 ----- ...ained_traffic_from_multiple_processes.snap | 55 ----- ...rom_multiple_processes_bi_directional.snap | 55 ----- .../tests__traffic_with_host_names.snap | 55 ----- .../tests__traffic_with_winch_event.snap | 55 ----- 99 files changed, 2696 insertions(+), 1337 deletions(-) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_single_connection.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_processes_with_multiple_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__no_resolve_mode.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_ip_packet_of_traffic.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_packet_of_traffic.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_process_with_multiple_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes_bi_directional.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_one_process.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__traffic_with_host_names.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap rename src/tests/{snapshots/tests__basic_startup.snap => cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap} (73%) rename src/tests/{snapshots/tests__multiple_packets_of_traffic_from_single_connection-2.snap => cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic-2.snap} (95%) rename src/tests/{snapshots/tests__multiple_connections_from_remote_address.snap => cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap} (73%) rename src/tests/{snapshots/tests__layout_full_width_under_30_height-2.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height-2.snap} (84%) rename src/tests/{snapshots/tests__layout_full_width_under_30_height.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height.snap} (89%) rename src/tests/{snapshots/tests__layout_under_120_width_under_full_height-2.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height-2.snap} (82%) rename src/tests/{snapshots/tests__layout_under_120_width_under_full_height.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height.snap} (91%) rename src/tests/{snapshots/tests__layout_under_120_width_under_30_height-2.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height-2.snap} (83%) rename src/tests/{snapshots/tests__layout_under_120_width_under_30_height.snap => cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height.snap} (91%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height.snap rename src/tests/{snapshots/tests__multiple_connections_from_remote_address-2.snap => cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address-2.snap} (93%) rename src/tests/{snapshots/tests__bi_directional_traffic.snap => cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap} (73%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap rename src/tests/{snapshots/tests__sustained_traffic_from_one_process.snap => cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap} (95%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode-2.snap rename src/tests/{snapshots/tests__multiple_packets_of_traffic_from_different_connections-2.snap => cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap} (91%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap rename src/tests/{snapshots/tests__multiple_connections_from_remote_ip-2.snap => cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections-2.snap} (93%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap rename src/tests/{snapshots/tests__bi_directional_traffic-2.snap => cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-2.snap} (95%) rename src/tests/{snapshots/tests__traffic_with_winch_event-2.snap => cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-3.snap} (99%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-2.snap rename src/tests/{snapshots/tests__traffic_with_host_names-2.snap => cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-3.snap} (90%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-4.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-5.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab.snap rename src/tests/{snapshots/tests__sustained_traffic_from_multiple_processes-2.snap => cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap} (95%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap rename src/tests/{snapshots/tests__sustained_traffic_from_one_process-2.snap => cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process-2.snap} (97%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap rename src/tests/{snapshots/tests__no_resolve_mode-2.snap => cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names-2.snap} (92%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-2.snap rename src/tests/{snapshots/tests__traffic_with_winch_event-3.snap => cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-3.snap} (95%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap rename src/tests/{snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional-2.snap => cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames-2.snap} (91%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap rename src/tests/{snapshots/tests__one_packet_of_traffic-2.snap => cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses-2.snap} (95%) create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes-2.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap create mode 100644 src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap rename src/tests/{snapshots/tests__multiple_connections_from_remote_ip.snap => cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap} (88%) delete mode 100644 src/tests/snapshots/tests__layout_under_120_width_full_height-2.snap delete mode 100644 src/tests/snapshots/tests__layout_under_120_width_full_height.snap delete mode 100644 src/tests/snapshots/tests__layout_under_150_width_full_height-2.snap delete mode 100644 src/tests/snapshots/tests__layout_under_150_width_full_height.snap delete mode 100644 src/tests/snapshots/tests__layout_under_150_width_under_30_height-2.snap delete mode 100644 src/tests/snapshots/tests__layout_under_150_width_under_30_height.snap delete mode 100644 src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections.snap delete mode 100644 src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection.snap delete mode 100644 src/tests/snapshots/tests__multiple_processes_with_multiple_connections-2.snap delete mode 100644 src/tests/snapshots/tests__multiple_processes_with_multiple_connections.snap delete mode 100644 src/tests/snapshots/tests__no_resolve_mode.snap delete mode 100644 src/tests/snapshots/tests__one_packet_of_traffic.snap delete mode 100644 src/tests/snapshots/tests__one_process_with_multiple_connections-2.snap delete mode 100644 src/tests/snapshots/tests__one_process_with_multiple_connections.snap delete mode 100644 src/tests/snapshots/tests__sustained_traffic_from_multiple_processes.snap delete mode 100644 src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional.snap delete mode 100644 src/tests/snapshots/tests__traffic_with_host_names.snap delete mode 100644 src/tests/snapshots/tests__traffic_with_winch_event.snap diff --git a/Cargo.lock b/Cargo.lock index 9c95fd108..1fc8c27f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,7 +119,6 @@ version = "0.20.0" dependencies = [ "anyhow", "async-trait", - "cargo-insta", "chrono", "crossterm 0.27.0", "http_req", @@ -171,16 +170,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "bstr" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05" -dependencies = [ - "memchr", - "serde", -] - [[package]] name = "bumpalo" version = "3.13.0" @@ -220,24 +209,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "cargo-insta" -version = "1.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc54e294b79518cd8e12109af2159b586f201cfdf59e0f8c550963cec3a1d5ec" -dependencies = [ - "console", - "ignore", - "insta", - "proc-macro2", - "serde", - "serde_json", - "structopt", - "syn 1.0.109", - "tempfile", - "uuid", -] - [[package]] name = "cassowary" version = "0.3.0" @@ -309,7 +280,6 @@ dependencies = [ "encode_unicode", "lazy_static", "libc", - "unicode-width", "windows-sys 0.45.0", ] @@ -542,12 +512,6 @@ dependencies = [ "miniz_oxide", ] -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - [[package]] name = "foreign-types" version = "0.3.2" @@ -645,19 +609,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" -[[package]] -name = "globset" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" -dependencies = [ - "aho-corasick", - "bstr", - "fnv", - "log", - "regex", -] - [[package]] name = "heck" version = "0.3.3" @@ -757,23 +708,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "ignore" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe7873dab538a9a44ad79ede1faf5f30d49f9a5c883ddbab48bce81b64b7492" -dependencies = [ - "globset", - "lazy_static", - "log", - "memchr", - "regex", - "same-file", - "thread_local", - "walkdir", - "winapi-util", -] - [[package]] name = "indoc" version = "2.0.3" @@ -798,9 +732,6 @@ dependencies = [ "console", "lazy_static", "linked-hash-map", - "pest", - "pest_derive", - "serde", "similar", "yaml-rust", ] @@ -843,12 +774,6 @@ dependencies = [ "serde", ] -[[package]] -name = "itoa" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" - [[package]] name = "jobserver" version = "0.1.26" @@ -1169,50 +1094,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" -[[package]] -name = "pest" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1acb4a4365a13f749a93f1a094a7805e5cfa0955373a9de860d962eaa3a5fe5a" -dependencies = [ - "thiserror", - "ucd-trie", -] - -[[package]] -name = "pest_derive" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666d00490d4ac815001da55838c500eafb0320019bbaa44444137c48b443a853" -dependencies = [ - "pest", - "pest_generator", -] - -[[package]] -name = "pest_generator" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ca01446f50dbda87c1786af8770d535423fa8a53aec03b8f4e3d7eb10e0929" -dependencies = [ - "pest", - "pest_meta", - "proc-macro2", - "quote", - "syn 2.0.29", -] - -[[package]] -name = "pest_meta" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56af0a30af74d0445c0bf6d9d051c979b516a1a5af790d251daee76005420a48" -dependencies = [ - "once_cell", - "pest", - "sha2", -] - [[package]] name = "pin-project-lite" version = "0.2.12" @@ -1539,21 +1420,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "ryu" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" - -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - [[package]] name = "schannel" version = "0.1.22" @@ -1612,17 +1478,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "serde_json" -version = "1.0.105" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360" -dependencies = [ - "itoa", - "ryu", - "serde", -] - [[package]] name = "sha1" version = "0.10.5" @@ -1821,16 +1676,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "thread_local" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" -dependencies = [ - "cfg-if", - "once_cell", -] - [[package]] name = "time" version = "0.1.45" @@ -1974,12 +1819,6 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" -[[package]] -name = "ucd-trie" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" - [[package]] name = "unicase" version = "2.7.0" @@ -2033,15 +1872,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "uuid" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" -dependencies = [ - "getrandom", -] - [[package]] name = "vcpkg" version = "0.2.15" @@ -2060,16 +1890,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "walkdir" -version = "2.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" -dependencies = [ - "same-file", - "winapi-util", -] - [[package]] name = "wasi" version = "0.10.0+wasi-snapshot-preview1" @@ -2158,15 +1978,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi", -] - [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" diff --git a/Cargo.toml b/Cargo.toml index cbcc2d0ec..9a2da56c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,6 @@ procfs = "0.15.1" [dev-dependencies] insta = "1.31.0" pnet_base = "0.34.0" -cargo-insta = "1.31.0" packet-builder = { version = "0.7.0", git = "https://github.com/cyqsimon/packet_builder.git", branch = "patch-update" } regex = "1" diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap new file mode 100644 index 000000000..604d40f51 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap @@ -0,0 +1,13 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 24/25 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 24/25 process: "1" +remote_address: 1.1.1.1 up/down Bps: 24/25 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap new file mode 100644 index 000000000..140d2b491 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap @@ -0,0 +1,14 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/47 connections: 2 +connection: :443 => 1.1.1.1:12346 (tcp) up/down Bps: 0/25 process: "1" +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +remote_address: 1.1.1.1 up/down Bps: 0/47 connections: 2 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap new file mode 100644 index 000000000..8d4d513f8 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap @@ -0,0 +1,15 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/22 connections: 1 +process: "4" up/down Bps: 0/19 connections: 1 +connection: :443 => 2.2.2.2:12345 (tcp) up/down Bps: 0/22 process: "1" +connection: :4434 => 2.2.2.2:54321 (tcp) up/down Bps: 0/19 process: "4" +remote_address: 2.2.2.2 up/down Bps: 0/41 connections: 2 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_single_connection.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_single_connection.snap new file mode 100644 index 000000000..7db2d184c --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_single_connection.snap @@ -0,0 +1,13 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/45 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/45 process: "1" +remote_address: 1.1.1.1 up/down Bps: 0/45 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_processes_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_processes_with_multiple_connections.snap new file mode 100644 index 000000000..0b230b751 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_processes_with_multiple_connections.snap @@ -0,0 +1,22 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "5" up/down Bps: 0/28 connections: 1 +process: "4" up/down Bps: 0/26 connections: 1 +process: "1" up/down Bps: 0/22 connections: 1 +process: "2" up/down Bps: 0/21 connections: 1 +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 0/28 process: "5" +connection: :4434 => 2.2.2.2:54321 (tcp) up/down Bps: 0/26 process: "4" +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +connection: :4432 => 4.4.4.4:1337 (tcp) up/down Bps: 0/21 process: "2" +remote_address: 3.3.3.3 up/down Bps: 0/28 connections: 1 +remote_address: 2.2.2.2 up/down Bps: 0/26 connections: 1 +remote_address: 1.1.1.1 up/down Bps: 0/22 connections: 1 +remote_address: 4.4.4.4 up/down Bps: 0/21 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__no_resolve_mode.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__no_resolve_mode.snap new file mode 100644 index 000000000..1e198c6cf --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__no_resolve_mode.snap @@ -0,0 +1,24 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 28/30 connections: 1 +process: "5" up/down Bps: 17/18 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 28/30 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 17/18 process: "5" +remote_address: 1.1.1.1 up/down Bps: 28/30 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 17/18 connections: 1 + +Refreshing: +process: "1" up/down Bps: 31/32 connections: 1 +process: "5" up/down Bps: 22/27 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 31/32 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 22/27 process: "5" +remote_address: 1.1.1.1 up/down Bps: 31/32 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 22/27 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_ip_packet_of_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_ip_packet_of_traffic.snap new file mode 100644 index 000000000..8ce257926 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_ip_packet_of_traffic.snap @@ -0,0 +1,13 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 21/0 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 21/0 process: "1" +remote_address: 1.1.1.1 up/down Bps: 21/0 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_packet_of_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_packet_of_traffic.snap new file mode 100644 index 000000000..8ce257926 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_packet_of_traffic.snap @@ -0,0 +1,13 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 21/0 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 21/0 process: "1" +remote_address: 1.1.1.1 up/down Bps: 21/0 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_process_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_process_with_multiple_connections.snap new file mode 100644 index 000000000..91519f3ef --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__one_process_with_multiple_connections.snap @@ -0,0 +1,14 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/46 connections: 2 +connection: :443 => 1.1.1.1:12346 (tcp) up/down Bps: 0/24 process: "1" +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +remote_address: 1.1.1.1 up/down Bps: 0/46 connections: 2 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes.snap new file mode 100644 index 000000000..85aadde5c --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes.snap @@ -0,0 +1,24 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/22 connections: 1 +process: "5" up/down Bps: 0/19 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 0/19 process: "5" +remote_address: 1.1.1.1 up/down Bps: 0/22 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 0/19 connections: 1 + +Refreshing: +process: "1" up/down Bps: 0/35 connections: 1 +process: "5" up/down Bps: 0/30 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/35 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 0/30 process: "5" +remote_address: 1.1.1.1 up/down Bps: 0/35 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 0/30 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes_bi_directional.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes_bi_directional.snap new file mode 100644 index 000000000..1e198c6cf --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_multiple_processes_bi_directional.snap @@ -0,0 +1,24 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 28/30 connections: 1 +process: "5" up/down Bps: 17/18 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 28/30 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 17/18 process: "5" +remote_address: 1.1.1.1 up/down Bps: 28/30 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 17/18 connections: 1 + +Refreshing: +process: "1" up/down Bps: 31/32 connections: 1 +process: "5" up/down Bps: 22/27 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 31/32 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 22/27 process: "5" +remote_address: 1.1.1.1 up/down Bps: 31/32 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 22/27 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_one_process.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_one_process.snap new file mode 100644 index 000000000..af3264d99 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__sustained_traffic_from_one_process.snap @@ -0,0 +1,18 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 0/22 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +remote_address: 1.1.1.1 up/down Bps: 0/22 connections: 1 + +Refreshing: +process: "1" up/down Bps: 0/31 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/31 process: "1" +remote_address: 1.1.1.1 up/down Bps: 0/31 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__traffic_with_host_names.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__traffic_with_host_names.snap new file mode 100644 index 000000000..70398cab3 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__traffic_with_host_names.snap @@ -0,0 +1,24 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: + + +Refreshing: +process: "1" up/down Bps: 28/30 connections: 1 +process: "5" up/down Bps: 17/18 connections: 1 +connection: :443 => 1.1.1.1:12345 (tcp) up/down Bps: 28/30 process: "1" +connection: :4435 => 3.3.3.3:1337 (tcp) up/down Bps: 17/18 process: "5" +remote_address: 1.1.1.1 up/down Bps: 28/30 connections: 1 +remote_address: 3.3.3.3 up/down Bps: 17/18 connections: 1 + +Refreshing: +process: "1" up/down Bps: 31/32 connections: 1 +process: "5" up/down Bps: 22/27 connections: 1 +connection: :443 => one.one.one.one:12345 (tcp) up/down Bps: 31/32 process: "1" +connection: :4435 => three.three.three.three:1337 (tcp) up/down Bps: 22/27 process: "5" +remote_address: one.one.one.one up/down Bps: 31/32 connections: 1 +remote_address: three.three.three.three up/down Bps: 22/27 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap new file mode 100644 index 000000000..b6057c35a --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by remote address───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Remote Address Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap new file mode 100644 index 000000000..d58004157 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap new file mode 100644 index 000000000..60bee0fdf --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap new file mode 100644 index 000000000..bc15814f3 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries shown). + diff --git a/src/tests/snapshots/tests__basic_startup.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap similarity index 73% rename from src/tests/snapshots/tests__basic_startup.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap index 2f3c76c36..d60e59734 100644 --- a/src/tests/snapshots/tests__basic_startup.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap @@ -1,35 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ │ ││ │ │ ││ │ │ ││ │ @@ -52,4 +27,29 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ └─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic-2.snap similarity index 95% rename from src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic-2.snap index 4e537d04d..20924f97f 100644 --- a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic-2.snap @@ -1,12 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 51Bps + 24Bps / 25Bps + 1 1 24Bps / 25Bps 1.1.1.1 1 24Bps / 25Bps - 1 1 0Bps/51Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/51Bps @@ -29,8 +29,8 @@ expression: "&terminal_draw_events_mirror[1]" + :443 => 1.1.1.1:12345 (tcp) 1 24Bps / 25Bps - 1.1.1.1 1 0Bps/51Bps diff --git a/src/tests/snapshots/tests__multiple_connections_from_remote_address.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap similarity index 73% rename from src/tests/snapshots/tests__multiple_connections_from_remote_address.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap index 2f3c76c36..d60e59734 100644 --- a/src/tests/snapshots/tests__multiple_connections_from_remote_address.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap @@ -1,35 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ │ ││ │ │ ││ │ │ ││ │ @@ -52,4 +27,29 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ └─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/snapshots/tests__layout_full_width_under_30_height-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height-2.snap similarity index 84% rename from src/tests/snapshots/tests__layout_full_width_under_30_height-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height-2.snap index bd3e84318..9c60b3257 100644 --- a/src/tests/snapshots/tests__layout_full_width_under_30_height-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height-2.snap @@ -1,15 +1,15 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 104Bps + 98Bps + 5 1 0Bps / 28Bps 3.3.3.3 1 0Bps / 28Bps + 4 1 0Bps / 26Bps 2.2.2.2 1 0Bps / 26Bps + 1 1 0Bps / 22Bps 1.1.1.1 1 0Bps / 22Bps + 2 1 0Bps / 21Bps 4.4.4.4 1 0Bps / 21Bps - 4 1 0Bps/33Bps :443 => 2.2.2.2:54321 (tcp) 4 0Bps/33Bps - 5 1 0Bps/25Bps :443 => 3.3.3.3:1337 (tcp) 5 0Bps/25Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - 2 1 0Bps/22Bps :443 => 4.4.4.4:1337 (tcp) 2 0Bps/22Bps diff --git a/src/tests/snapshots/tests__layout_full_width_under_30_height.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height.snap similarity index 89% rename from src/tests/snapshots/tests__layout_full_width_under_30_height.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height.snap index 0b734e48a..1e26e228d 100644 --- a/src/tests/snapshots/tests__layout_full_width_under_30_height.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_full_width_under_30_height.snap @@ -1,11 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ │ ││ │ │ ││ │ │ ││ │ @@ -31,4 +30,5 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ └─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/snapshots/tests__layout_under_120_width_under_full_height-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height-2.snap similarity index 82% rename from src/tests/snapshots/tests__layout_under_120_width_under_full_height-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height-2.snap index 49a5f0c2a..8230e66a5 100644 --- a/src/tests/snapshots/tests__layout_under_120_width_under_full_height-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height-2.snap @@ -1,15 +1,15 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 104Bps + 98Bps + 5 1 0Bps / 28Bps + 4 1 0Bps / 26Bps + 1 1 0Bps / 22Bps + 2 1 0Bps / 21Bps - :443 => 2.2.2.2:54321 (tcp) 4 0Bps/33Bps - :443 => 3.3.3.3:1337 (tcp) 5 0Bps/25Bps - :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - :443 => 4.4.4.4:1337 (tcp) 2 0Bps/22Bps @@ -29,11 +29,11 @@ expression: "&terminal_draw_events_mirror[1]" + 3.3.3.3 1 0Bps / 28Bps + 2.2.2.2 1 0Bps / 26Bps + 1.1.1.1 1 0Bps / 22Bps + 4.4.4.4 1 0Bps / 21Bps - 4 1 0Bps/33Bps - 5 1 0Bps/25Bps - 1 1 0Bps/24Bps - 2 1 0Bps/22Bps diff --git a/src/tests/snapshots/tests__layout_under_120_width_under_full_height.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height.snap similarity index 91% rename from src/tests/snapshots/tests__layout_under_120_width_under_full_height.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height.snap index 0de82cd3d..53043a7ca 100644 --- a/src/tests/snapshots/tests__layout_under_120_width_under_full_height.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_full_height.snap @@ -1,10 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by connection────────────────────────────────────────────────────────────────────────────────────────────┐ -│Connection Process Rate Up/Down │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ │ │ │ │ │ │ @@ -27,9 +27,8 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down │ -│ │ +┌Utilization by remote address────────────────────────────────────────────────────────────────────────────────────────┐ +│Remote Address Connections Up / Down │ │ │ │ │ │ │ @@ -52,4 +51,5 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/snapshots/tests__layout_under_120_width_under_30_height-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height-2.snap similarity index 83% rename from src/tests/snapshots/tests__layout_under_120_width_under_30_height-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height-2.snap index ad389d158..06cb64583 100644 --- a/src/tests/snapshots/tests__layout_under_120_width_under_30_height-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height-2.snap @@ -1,15 +1,15 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 104Bps + 98Bps + 5 1 0Bps / 28Bps + 4 1 0Bps / 26Bps + 1 1 0Bps / 22Bps + 2 1 0Bps / 21Bps - 4 1 0Bps/33Bps - 5 1 0Bps/25Bps - 1 1 0Bps/24Bps - 2 1 0Bps/22Bps diff --git a/src/tests/snapshots/tests__layout_under_120_width_under_30_height.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height.snap similarity index 91% rename from src/tests/snapshots/tests__layout_under_120_width_under_30_height.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height.snap index 5045dc8f2..0bbc796b9 100644 --- a/src/tests/snapshots/tests__layout_under_120_width_under_30_height.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_120_width_under_30_height.snap @@ -1,11 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps + Total Up / Down: 0Bps / 0Bps ┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down │ -│ │ +│Process Connections Up / Down │ │ │ │ │ │ │ @@ -31,4 +30,5 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height-2.snap new file mode 100644 index 000000000..294b866d4 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height-2.snap @@ -0,0 +1,54 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 98Bps + + + 5 0Bps / 28Bps + 4 0Bps / 26Bps + 1 0Bps / 22Bps + 2 0Bps / 21Bps + + + + + + + + + + + + + + + + + + + + 3.3.3.3 0Bps / 28Bps + 2.2.2.2 0Bps / 26Bps + 1.1.1.1 0Bps / 22Bps + 4.4.4.4 0Bps / 21Bps + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height.snap new file mode 100644 index 000000000..05185f5bd --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_50_width_under_50_height.snap @@ -0,0 +1,54 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name────────────────────┐ +│Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└───────────────────────────────────────────────┘ +┌Utilization by remote address──────────────────┐ +│Remote Address Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└───────────────────────────────────────────────┘ + Press to pause. + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height-2.snap new file mode 100644 index 000000000..6f24434f5 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height-2.snap @@ -0,0 +1,34 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 98Bps + + + 5 1 0Bps / 28Bps + 4 1 0Bps / 26Bps + 1 1 0Bps / 22Bps + 2 1 0Bps / 21Bps + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height.snap new file mode 100644 index 000000000..281674ae6 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout_under_70_width_under_30_height.snap @@ -0,0 +1,34 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└───────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. + diff --git a/src/tests/snapshots/tests__multiple_connections_from_remote_address-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address-2.snap similarity index 93% rename from src/tests/snapshots/tests__multiple_connections_from_remote_address-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address-2.snap index 60b711347..0d13a7efb 100644 --- a/src/tests/snapshots/tests__multiple_connections_from_remote_address-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address-2.snap @@ -1,13 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 55Bps + 47Bps + 1 2 0Bps / 47Bps 1.1.1.1 2 0Bps / 47Bps - 3 1 0Bps/31Bps :443 => 1.1.1.1:12346 (tcp) 3 0Bps/31Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps @@ -30,7 +29,8 @@ expression: "&terminal_draw_events_mirror[1]" - 1.1.1.1 2 0Bps/55Bps + :443 => 1.1.1.1:12346 (tcp) 1 0Bps / 25Bps + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps diff --git a/src/tests/snapshots/tests__bi_directional_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap similarity index 73% rename from src/tests/snapshots/tests__bi_directional_traffic.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap index 2f3c76c36..d60e59734 100644 --- a/src/tests/snapshots/tests__bi_directional_traffic.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap @@ -1,35 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ │ ││ │ │ ││ │ │ ││ │ @@ -52,4 +27,29 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ └─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections-2.snap new file mode 100644 index 000000000..ce8e2699a --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 41Bps + + + 1 1 0Bps / 22Bps 2.2.2.2 2 0Bps / 41Bps + 4 1 0Bps / 19Bps + + + + + + + + + + + + + + + + + + + + + + + :443 => 2.2.2.2:12345 (tcp) 1 0Bps / 22Bps + :4434 => 2.2.2.2:54321 (tcp) 4 0Bps / 19Bps + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/snapshots/tests__sustained_traffic_from_one_process.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap similarity index 95% rename from src/tests/snapshots/tests__sustained_traffic_from_one_process.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap index 9b7e5e2f9..344a6ac85 100644 --- a/src/tests/snapshots/tests__sustained_traffic_from_one_process.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap @@ -1,12 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 24Bps + 45Bps + 1 1 0Bps / 45Bps 1.1.1.1 1 0Bps / 45Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps @@ -29,8 +29,8 @@ expression: "&terminal_draw_events_mirror[1]" + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 45Bps - 1.1.1.1 1 0Bps/24Bps diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections-2.snap new file mode 100644 index 000000000..9e55903cc --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 98Bps + + + 5 1 0Bps / 28Bps 3.3.3.3 1 0Bps / 28Bps + 4 1 0Bps / 26Bps 2.2.2.2 1 0Bps / 26Bps + 1 1 0Bps / 22Bps 1.1.1.1 1 0Bps / 22Bps + 2 1 0Bps / 21Bps 4.4.4.4 1 0Bps / 21Bps + + + + + + + + + + + + + + + + + + + + + :4435 => 3.3.3.3:1337 (tcp) 5 0Bps / 28Bps + :4434 => 2.2.2.2:54321 (tcp) 4 0Bps / 26Bps + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps + :4432 => 4.4.4.4:1337 (tcp) 2 0Bps / 21Bps + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode-2.snap new file mode 100644 index 000000000..5704676d4 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2]" +--- + 53 60 + + + 31 2 31 2 + 22 27 22 27 + + + + + + + + + + + + + + + + + + + + + + + 31 2 + 22 27 + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap similarity index 91% rename from src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap index 423201351..21308720f 100644 --- a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap @@ -1,13 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 43Bps + 45Bps / 49Bps + 1 1 28Bps / 30Bps 1.1.1.1 1 28Bps / 30Bps + 5 1 17Bps / 18Bps 3.3.3.3 1 17Bps / 18Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - 4 1 0Bps/19Bps :443 => 2.2.2.2:54321 (tcp) 4 0Bps/19Bps @@ -29,9 +29,9 @@ expression: "&terminal_draw_events_mirror[1]" + :443 => 1.1.1.1:12345 (tcp) 1 28Bps / 30Bps + :4435 => 3.3.3.3:1337 (tcp) 5 17Bps / 18Bps - 1.1.1.1 1 0Bps/24Bps - 2.2.2.2 1 0Bps/19Bps diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic-2.snap new file mode 100644 index 000000000..8552ae7d7 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 21Bps / 0Bps + + + 1 1 21Bps / 0Bps 1.1.1.1 1 21Bps / 0Bps + + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 21Bps / 0Bps + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/snapshots/tests__multiple_connections_from_remote_ip-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections-2.snap similarity index 93% rename from src/tests/snapshots/tests__multiple_connections_from_remote_ip-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections-2.snap index 60b711347..bc98fea9f 100644 --- a/src/tests/snapshots/tests__multiple_connections_from_remote_ip-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections-2.snap @@ -1,13 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 55Bps + 46Bps + 1 2 0Bps / 46Bps 1.1.1.1 2 0Bps / 46Bps - 3 1 0Bps/31Bps :443 => 1.1.1.1:12346 (tcp) 3 0Bps/31Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps @@ -30,7 +29,8 @@ expression: "&terminal_draw_events_mirror[1]" - 1.1.1.1 2 0Bps/55Bps + :443 => 1.1.1.1:12346 (tcp) 1 0Bps / 24Bps + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/snapshots/tests__bi_directional_traffic-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-2.snap similarity index 95% rename from src/tests/snapshots/tests__bi_directional_traffic-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-2.snap index 3b69f517b..84811684e 100644 --- a/src/tests/snapshots/tests__bi_directional_traffic-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-2.snap @@ -1,12 +1,11 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 29Bps/31Bps + Total Up / Down: 0Bps / 0Bps [PAUSED] - 1 1 29Bps/31Bps :443 => 1.1.1.1:12345 (tcp) 1 29Bps/31Bps @@ -30,7 +29,6 @@ expression: "&terminal_draw_events_mirror[1]" - 1.1.1.1 1 29Bps/31Bps @@ -52,4 +50,6 @@ expression: "&terminal_draw_events_mirror[1]" + + resume. Use to rea range tables. (DNS queries hi den). diff --git a/src/tests/snapshots/tests__traffic_with_winch_event-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-3.snap similarity index 99% rename from src/tests/snapshots/tests__traffic_with_winch_event-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-3.snap index ef3dfea30..d710afbc2 100644 --- a/src/tests/snapshots/tests__traffic_with_winch_event-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space-3.snap @@ -1,6 +1,6 @@ --- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2]" --- diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-2.snap new file mode 100644 index 000000000..ab25252ad --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 22Bps + + + 1 1 0Bps / 22Bps 1.1.1.1 1 0Bps / 22Bps + + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__traffic_with_host_names-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-3.snap similarity index 90% rename from src/tests/snapshots/tests__traffic_with_host_names-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-3.snap index 494fefbfe..e3182172f 100644 --- a/src/tests/snapshots/tests__traffic_with_host_names-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab-3.snap @@ -1,13 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 29 42 + remote addr ss connection──── + Remote Address Connections Up / Down Connection Proc ss + .1.1.1 1 0Bps / 22Bps to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap similarity index 95% rename from src/tests/snapshots/tests__sustained_traffic_from_multiple_processes-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap index 88411b211..d992b876d 100644 --- a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap @@ -1,13 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 72 + 65 + 35 35 + 30 30 - 41 41 - 31 31 @@ -29,9 +29,9 @@ expression: "&terminal_draw_events_mirror[2]" + 35 + 30 - 41 - 31 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap new file mode 100644 index 000000000..268cf7474 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 41Bps + + + 1 1 0Bps / 22Bps 1.1.1.1 1 0Bps / 22Bps + 5 1 0Bps / 19Bps 3.3.3.3 1 0Bps / 19Bps + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps + :4435 => 3.3.3.3:1337 (tcp) 5 0Bps / 19Bps + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional-2.snap new file mode 100644 index 000000000..5704676d4 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2]" +--- + 53 60 + + + 31 2 31 2 + 22 27 22 27 + + + + + + + + + + + + + + + + + + + + + + + 31 2 + 22 27 + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap new file mode 100644 index 000000000..21308720f --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 45Bps / 49Bps + + + 1 1 28Bps / 30Bps 1.1.1.1 1 28Bps / 30Bps + 5 1 17Bps / 18Bps 3.3.3.3 1 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 28Bps / 30Bps + :4435 => 3.3.3.3:1337 (tcp) 5 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total-2.snap new file mode 100644 index 000000000..b088284fb --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2].replace(\"1 \\n\", \"2 \\n\")" +--- + 98 109B 2 + + + 59 62 59 62 + 39 45 39 45 + + + + + + + + + + + + + + + + + + + + + + + 59 62 + 39 45 + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap new file mode 100644 index 000000000..dd20f696a --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 45B / 49B 1 + + + 1 1 28B / 30B 1.1.1.1 1 28B / 30B + 5 1 17B / 18B 3.3.3.3 1 17B / 18B + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 28B / 30B + :4435 => 3.3.3.3:1337 (tcp) 5 17B / 18B + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total-2.snap new file mode 100644 index 000000000..4853186d6 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2].replace(\"1 \\n\", \"2 \\n\")" +--- + 106B 2 + + + 57 57 + 4 4 + + + + + + + + + + + + + + + + + + + + + + + 57 + 4 + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap new file mode 100644 index 000000000..906c3a338 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 41B 1 + + + 1 1 0B / 22B 1.1.1.1 1 0B / 22B + 5 1 0B / 19B 3.3.3.3 1 0B / 19B + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 0B / 22B + :4435 => 3.3.3.3:1337 (tcp) 5 0B / 19B + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__sustained_traffic_from_one_process-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process-2.snap similarity index 97% rename from src/tests/snapshots/tests__sustained_traffic_from_one_process-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process-2.snap index da27858c1..8d9b2dfa4 100644 --- a/src/tests/snapshots/tests__sustained_traffic_from_one_process-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process-2.snap @@ -1,12 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 31 + 31 + 31 31 - 31 31 @@ -29,8 +29,8 @@ expression: "&terminal_draw_events_mirror[2]" + 31 - 31 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap new file mode 100644 index 000000000..ab25252ad --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 22Bps + + + 1 1 0Bps / 22Bps 1.1.1.1 1 0Bps / 22Bps + + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 0Bps / 22Bps + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total-2.snap new file mode 100644 index 000000000..cbc0e1f58 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[2].replace(\"1 \\n\", \"2 \\n\")" +--- + 53 2 + + + 53 53 + + + + + + + + + + + + + + + + + + + + + + + + 53 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap new file mode 100644 index 000000000..8fa74253d --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 22B 1 + + + 1 1 0B / 22B 1.1.1.1 1 0B / 22B + + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 0B / 22B + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__no_resolve_mode-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names-2.snap similarity index 92% rename from src/tests/snapshots/tests__no_resolve_mode-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names-2.snap index f0ea8322f..a55cf71a9 100644 --- a/src/tests/snapshots/tests__no_resolve_mode-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names-2.snap @@ -1,13 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 29 42 + 53 60 + 31 2 one one.one.one 31 2 + 22 27 three three.three.three 22 27 - 5 12 26 3 3 3 3 3 7 (tcp) 5 12 26 - 1 7 6 1 1 1 1 2 45 (tcp) 1 7 6 @@ -29,9 +29,9 @@ expression: "&terminal_draw_events_mirror[2]" + one one.one.one:12345 (tcp) 31 2 + three three.three.three:1337 (tcp) 22 27 - 3 3 3 3 12 26 - 1 1 1 1 7 6 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap new file mode 100644 index 000000000..21308720f --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 45Bps / 49Bps + + + 1 1 28Bps / 30Bps 1.1.1.1 1 28Bps / 30Bps + 5 1 17Bps / 18Bps 3.3.3.3 1 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 28Bps / 30Bps + :4435 => 3.3.3.3:1337 (tcp) 5 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-2.snap new file mode 100644 index 000000000..8552ae7d7 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 21Bps / 0Bps + + + 1 1 21Bps / 0Bps 1.1.1.1 1 21Bps / 0Bps + + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 21Bps / 0Bps + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__traffic_with_winch_event-3.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-3.snap similarity index 95% rename from src/tests/snapshots/tests__traffic_with_winch_event-3.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-3.snap index 84609d509..d710afbc2 100644 --- a/src/tests/snapshots/tests__traffic_with_winch_event-3.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event-3.snap @@ -1,12 +1,10 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 22Bps/0Bps - 1 1 22Bps/0Bps :443 => 1.1.1.1:12345 (tcp) 1 22Bps/0Bps @@ -30,7 +28,9 @@ expression: "&terminal_draw_events_mirror[2]" - 1.1.1.1 1 22Bps/0Bps + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap new file mode 100644 index 000000000..d60e59734 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down ││Remote Address Connections Up / Down │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames-2.snap similarity index 91% rename from src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames-2.snap index f0ea8322f..a257bc440 100644 --- a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames-2.snap @@ -1,13 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[2]" --- - 29 42 + 53 60 + 31 2 i am.not.too.long 31 2 + 22 27 i am.an.obno[...]really.i.ask 22 27 - 5 12 26 3 3 3 3 3 7 (tcp) 5 12 26 - 1 7 6 1 1 1 1 2 45 (tcp) 1 7 6 @@ -29,9 +29,9 @@ expression: "&terminal_draw_events_mirror[2]" + i am.not.too.long:12345 (tcp) 31 2 + i am.an.obnoxiosuly.lo[...]hy.would.anyone.do.this.really.i.ask:1337 (tcp) 22 27 - 3 3 3 3 12 26 - 1 1 1 1 7 6 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap new file mode 100644 index 000000000..21308720f --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 45Bps / 49Bps + + + 1 1 28Bps / 30Bps 1.1.1.1 1 28Bps / 30Bps + 5 1 17Bps / 18Bps 3.3.3.3 1 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + + :443 => 1.1.1.1:12345 (tcp) 1 28Bps / 30Bps + :4435 => 3.3.3.3:1337 (tcp) 5 17Bps / 18Bps + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/snapshots/tests__one_packet_of_traffic-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses-2.snap similarity index 95% rename from src/tests/snapshots/tests__one_packet_of_traffic-2.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses-2.snap index a58cc7659..18ef7bdce 100644 --- a/src/tests/snapshots/tests__one_packet_of_traffic-2.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses-2.snap @@ -1,12 +1,13 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[1]" --- - 22Bps/0Bps + 24Bps / 25Bps + 1.1.1.1 1 24Bps / 25Bps + - 1 1 22Bps/0Bps :443 => 1.1.1.1:12345 (tcp) 1 22Bps/0Bps @@ -30,7 +31,6 @@ expression: "&terminal_draw_events_mirror[1]" - 1.1.1.1 1 22Bps/0Bps diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap new file mode 100644 index 000000000..b6057c35a --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by remote address───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Remote Address Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections-2.snap new file mode 100644 index 000000000..4904c73e4 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 24Bps / 25Bps + + + :443 => 1.1.1.1:12345 (tcp) 1 24Bps / 25Bps + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap new file mode 100644 index 000000000..d58004157 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Connection Process Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes-2.snap new file mode 100644 index 000000000..438c8069a --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes-2.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[1]" +--- + 24Bps / 25Bps + + + 1 1 24Bps / 25Bps + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap new file mode 100644 index 000000000..60bee0fdf --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap new file mode 100644 index 000000000..d59324a50 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap @@ -0,0 +1,55 @@ +--- +source: src/tests/cases/ui.rs +expression: "&terminal_draw_events_mirror[0]" +--- + Total Up / Down: 0Bps / 0Bps +┌Utilization by remote address─────────────────────────────┐ +│Remote Address Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────┘ +┌Utilization by connection─────────────────────────────────┐ +│Connection Up / Down │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. + diff --git a/src/tests/snapshots/tests__multiple_connections_from_remote_ip.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap similarity index 88% rename from src/tests/snapshots/tests__multiple_connections_from_remote_ip.snap rename to src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap index 34628acb6..f76324d40 100644 --- a/src/tests/snapshots/tests__multiple_connections_from_remote_ip.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap @@ -1,10 +1,12 @@ --- -source: src/tests/mod.rs +source: src/tests/cases/ui.rs expression: "&terminal_draw_events_mirror[0]" --- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ + Total Up / Down: 0Bps / 0Bps +┌Utilization by remote address────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ +│Remote Address Connections Up / Down ││Connection Process Up / Down │ +│ ││ │ +│ ││ │ │ ││ │ │ ││ │ │ ││ │ @@ -26,9 +28,6 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ │ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote ip─────────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ │ ││ │ │ ││ │ │ ││ │ @@ -52,4 +51,5 @@ expression: "&terminal_draw_events_mirror[0]" │ ││ │ │ ││ │ └─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/snapshots/tests__layout_under_120_width_full_height-2.snap b/src/tests/snapshots/tests__layout_under_120_width_full_height-2.snap deleted file mode 100644 index 32c4178a8..000000000 --- a/src/tests/snapshots/tests__layout_under_120_width_full_height-2.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 104Bps - - - - 4 1 0Bps/33Bps - 5 1 0Bps/25Bps - 1 1 0Bps/24Bps - 2 1 0Bps/22Bps - - - - - - - - - - - - - - - - - - - - - :443 => 2.2.2.2:54321 (tcp) 4 0Bps/33Bps - :443 => 3.3.3.3:1337 (tcp) 5 0Bps/25Bps - :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - :443 => 4.4.4.4:1337 (tcp) 2 0Bps/22Bps - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__layout_under_120_width_full_height.snap b/src/tests/snapshots/tests__layout_under_120_width_full_height.snap deleted file mode 100644 index abea388c8..000000000 --- a/src/tests/snapshots/tests__layout_under_120_width_full_height.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -┌Utilization by connection────────────────────────────────────────────────────────────────────────────────────────────┐ -│Connection Process Rate Up/Down │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__layout_under_150_width_full_height-2.snap b/src/tests/snapshots/tests__layout_under_150_width_full_height-2.snap deleted file mode 100644 index 1a07c032e..000000000 --- a/src/tests/snapshots/tests__layout_under_150_width_full_height-2.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 104Bps - - - - 4 1 0Bps/33Bps - 5 1 0Bps/25Bps - 1 1 0Bps/24Bps - 2 1 0Bps/22Bps - - - - - - - - - - - - - - - - - - - - - :443 => 2.2.2.2:54321 (tcp) 0Bps/33Bps 2.2.2.2 0Bps/33Bps - :443 => 3.3.3.3:1337 (tcp) 0Bps/25Bps 3.3.3.3 0Bps/25Bps - :443 => 1.1.1.1:12345 (tcp) 0Bps/24Bps 1.1.1.1 0Bps/24Bps - :443 => 4.4.4.4:1337 (tcp) 0Bps/22Bps 4.4.4.4 0Bps/22Bps - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__layout_under_150_width_full_height.snap b/src/tests/snapshots/tests__layout_under_150_width_full_height.snap deleted file mode 100644 index 1ed7c6fdd..000000000 --- a/src/tests/snapshots/tests__layout_under_150_width_full_height.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -│ │ -└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -┌Utilization by connection───────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────┐ -│Connection Rate Up/Down ││Remote Address Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__layout_under_150_width_under_30_height-2.snap b/src/tests/snapshots/tests__layout_under_150_width_under_30_height-2.snap deleted file mode 100644 index 8060d3bc8..000000000 --- a/src/tests/snapshots/tests__layout_under_150_width_under_30_height-2.snap +++ /dev/null @@ -1,34 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 104Bps - - - - 4 0Bps/33Bps :443 => 2.2.2.2:54321 (tcp) 0Bps/33Bps - 5 0Bps/25Bps :443 => 3.3.3.3:1337 (tcp) 0Bps/25Bps - 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 0Bps/24Bps - 2 0Bps/22Bps :443 => 4.4.4.4:1337 (tcp) 0Bps/22Bps - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__layout_under_150_width_under_30_height.snap b/src/tests/snapshots/tests__layout_under_150_width_under_30_height.snap deleted file mode 100644 index 15d6d44ce..000000000 --- a/src/tests/snapshots/tests__layout_under_150_width_under_30_height.snap +++ /dev/null @@ -1,34 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name─────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────┐ -│Process Rate Up/Down ││Connection Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections.snap b/src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_different_connections.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection.snap b/src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__multiple_packets_of_traffic_from_single_connection.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__multiple_processes_with_multiple_connections-2.snap b/src/tests/snapshots/tests__multiple_processes_with_multiple_connections-2.snap deleted file mode 100644 index e61e0dc36..000000000 --- a/src/tests/snapshots/tests__multiple_processes_with_multiple_connections-2.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 104Bps - - - - 4 1 0Bps/33Bps :443 => 2.2.2.2:54321 (tcp) 4 0Bps/33Bps - 5 1 0Bps/25Bps :443 => 3.3.3.3:1337 (tcp) 5 0Bps/25Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - 2 1 0Bps/22Bps :443 => 4.4.4.4:1337 (tcp) 2 0Bps/22Bps - - - - - - - - - - - - - - - - - - - - - 2.2.2.2 1 0Bps/33Bps - 3.3.3.3 1 0Bps/25Bps - 1.1.1.1 1 0Bps/24Bps - 4.4.4.4 1 0Bps/22Bps - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__multiple_processes_with_multiple_connections.snap b/src/tests/snapshots/tests__multiple_processes_with_multiple_connections.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__multiple_processes_with_multiple_connections.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__no_resolve_mode.snap b/src/tests/snapshots/tests__no_resolve_mode.snap deleted file mode 100644 index 35fd23cee..000000000 --- a/src/tests/snapshots/tests__no_resolve_mode.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 51Bps/58Bps - - - - 1 1 37Bps/41Bps :443 => 1.1.1.1:12345 (tcp) 1 37Bps/41Bps - 5 1 14Bps/17Bps :443 => 3.3.3.3:1337 (tcp) 5 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - - - 1.1.1.1 1 37Bps/41Bps - 3.3.3.3 1 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__one_packet_of_traffic.snap b/src/tests/snapshots/tests__one_packet_of_traffic.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__one_packet_of_traffic.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__one_process_with_multiple_connections-2.snap b/src/tests/snapshots/tests__one_process_with_multiple_connections-2.snap deleted file mode 100644 index f4008af3e..000000000 --- a/src/tests/snapshots/tests__one_process_with_multiple_connections-2.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 52Bps - - - - 5 1 0Bps/28Bps :443 => 3.3.3.3:1337 (tcp) 5 0Bps/28Bps - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - - - - - - - - - - - - - - - - - - - - - - - 3.3.3.3 1 0Bps/28Bps - 1.1.1.1 1 0Bps/24Bps - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__one_process_with_multiple_connections.snap b/src/tests/snapshots/tests__one_process_with_multiple_connections.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__one_process_with_multiple_connections.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ - diff --git a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes.snap b/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes.snap deleted file mode 100644 index ee26cadf9..000000000 --- a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 43Bps - - - - 1 1 0Bps/24Bps :443 => 1.1.1.1:12345 (tcp) 1 0Bps/24Bps - 5 1 0Bps/19Bps :443 => 3.3.3.3:1337 (tcp) 5 0Bps/19Bps - - - - - - - - - - - - - - - - - - - - - - - 1.1.1.1 1 0Bps/24Bps - 3.3.3.3 1 0Bps/19Bps - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional.snap b/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional.snap deleted file mode 100644 index 35fd23cee..000000000 --- a/src/tests/snapshots/tests__sustained_traffic_from_multiple_processes_bi_directional.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 51Bps/58Bps - - - - 1 1 37Bps/41Bps :443 => 1.1.1.1:12345 (tcp) 1 37Bps/41Bps - 5 1 14Bps/17Bps :443 => 3.3.3.3:1337 (tcp) 5 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - - - 1.1.1.1 1 37Bps/41Bps - 3.3.3.3 1 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__traffic_with_host_names.snap b/src/tests/snapshots/tests__traffic_with_host_names.snap deleted file mode 100644 index 4d479e00e..000000000 --- a/src/tests/snapshots/tests__traffic_with_host_names.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[1]" ---- - 51Bps/58Bps - - - - 1 1 37Bps/41Bps :443 => one.one.one.one:12345 (tcp) 1 37Bps/41Bps - 5 1 14Bps/17Bps :443 => three.three.three.three:1337 (tcp) 5 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - - - one.one.one.one 1 37Bps/41Bps - three.three.three.three 1 14Bps/17Bps - - - - - - - - - - - - - - - - - - - - - diff --git a/src/tests/snapshots/tests__traffic_with_winch_event.snap b/src/tests/snapshots/tests__traffic_with_winch_event.snap deleted file mode 100644 index 2f3c76c36..000000000 --- a/src/tests/snapshots/tests__traffic_with_winch_event.snap +++ /dev/null @@ -1,55 +0,0 @@ ---- -source: src/tests/mod.rs -expression: "&terminal_draw_events_mirror[0]" ---- - Total Rate Up/Down: 0Bps/0Bps -┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ -│Process Connection count Rate Up/Down ││Connection Process Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ │└─────────────────────────────────────────────────────────────────────────────────────────────┘ -│ │┌Utilization by remote address────────────────────────────────────────────────────────────────┐ -│ ││Remote Address Connection Count Rate Up/Down │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -│ ││ │ -└─────────────────────────────────────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────┘ -