summaryrefslogtreecommitdiffstats
path: root/src/tests/cases/snapshots
AgeCommit message (Collapse)Author
2023-10-17Partially fix flaky tests (#308)cyqsimon
* Minor code style changes * Disable rendering of timestamps in tests * Update test snapshots * Test everything with insta macros (no more `assert(_eq)?`) - This has the benefit of creating snapshots for everything, allowing for later diffing * Don't use `assert_debug_snapshot` for large string outputs - This makes snapshots more human-inspectable * Code style improvement on two tests - `pause_by_space` - `rearranged_by_tab` * Minor code style improvements
2023-10-08Explicitly name `layout-*` tests as socyqsimon
2023-10-08Migrate all tests to using `cargo-insta`cyqsimon
2023-10-07Compact tests using `rstest`cyqsimon
2023-10-07Rm old, unused test snapshotscyqsimon
2023-09-20Update test snapshot, another onecyqsimon
2023-09-20Update test snapshotcyqsimon
2023-08-26fix: fix snapshot testsNbiba Bedis
2020-09-29fix(ui): upgrade tui to latest version and fix breaking changes (#190)Aram Drevekenin
* fix(ui): upgrade tui to latest version and fix for breaking changes in the api * fix(style): address PR comments
2020-09-14feat(ui): crossplatform terminal resize handling using crossterm ↵remgodow
Event::Resize (#186)
2020-09-10feat(platform): windows build and run support (#180)remgodow
* Remove connections vector from OpenSockets, use common OpenSockets implementation based on sysinfo and netstat2. * Replace termion backend with crossterm, which works on Windows as well. * More fixes for windows build. * Remove tui default-features (termion), update unit tests for crossterm. * Windows compilation fixes. * Remove unused get_open_sockets implementations for linux and mac. Fix formatting. * Add build.rs for windows to download and extract Packet.lib from npcap SDK. * Resolve Cargo.lock after merging main. * fix(tests): adjust snapshots new location of the dns resolution * style(clippy): clippy * style(clippy): remove dead code * style(clippy): use write_all in build.rs * style(clippy): remove unused import added by Intellij * style(review): use String instead of str * fix(build): run build.rs only once * fix(regression): skip iface_is_up() filter only for Windows * fix(review): restore per os implementation of get_open_sockets() * fix(cargo): add missing os specific packages * fix: conditional compilation of windows module * fix: compilation errors * fix: missing Protocol::from_str() implementation * style(clippy): remove unused methods Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-09-01hotfix(truncation): display long uneven hostnames properly (fixes small ↵Aram Drevekenin
issue in #177)
2020-07-14feat(raw): add delimiters to raw output (#175)sigmaSd
2020-05-20Merge remote-tracking branch 'origin/master' into issue-163-elapsed-timeRupert Rutledge
Conflicts: src/display/components/layout.rs src/display/ui.rs src/main.rs
2020-05-17feat(layout): 'Window' ordering ability (#118)Louis Lesage
* Window ordering ability Added ability to change display order of the windows using tab. Added a help tooltip. * fix redundant clone * fix fmt check * cargo fmt fix 2 * Fixed help layout and added tests * Fix fmt check
2020-05-16Altering the snapshots for tests that are affected by new duration codeRupert Rutledge
Simply replacing the "1 \n" write events with "2 \n" when we check the snapshots to make them consistent. There may still be issues with timing in the tests, but can serve as a stop-gap.
2020-04-05fix(tests): update total-utilization and hide-dns testsAram Drevekenin
2020-04-05feat(network): add accumlated usage (#155)Brooks Rady
* Add accumlated usage * Fixed a nasty performace leak * Fix a silly reverse-ordering bug * Address some feedback * Finished some reorganizing * Another silly reversal bug * Let the test cases run * Most tests are working * Fix some formatting that got left behind * Fix the rest of the tests * Add some new tests to cover the total mode * Whoops, a double newline
2020-04-05feat(network): hide dns queries by default (#161)Oleh
* add filter by dns queries * update snapshots with cargo fmt * add tests with filtering improvement
2020-01-25feat(layout): new layout (#139)Aram Drevekenin
2020-01-16feat(ui): select windows to display from CLI (#107)Simone Robutti
* added first version (no tests) * fixed layout * added support for 2 windows * comments * breathing windows * added tests * format * fixed rebase * review * added more tests * simplified table creation * fix(table): do not overflow on max size Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-01-14fix(ui-state): do not overcalculate bandwidth and connections (#114)Aram Drevekenin
* fix(ui-state): do not overcalculate bandwidth and connections * fix(ui-state): style and bug * style(format): make clippy happy
2020-01-13feat(helptext): communicate pause/resume to the user (#111)Aram Drevekenin
* feat(helptext): communicate pause/resume to the user * style(format): rustfmt
2020-01-12Merge pull request #77 from imsnif/averageKelvin Zhang
Display weighted average of bandwidth
2020-01-12test(snapshots): update to new formulaAram Drevekenin
2020-01-10Add testcase for pause featureKelvin Zhang
2020-01-09Update UI snapshots for new bandwidth calculationKelvin Zhang
2020-01-08Ensure that layer3 packets are displayed as wellMaximilian Bosch
When using e.g. WireGuard (a VPN which completely acts on layer3), no packages will be matched as it's attempted to parse those as ethernet (=layer2) packets. This is a problem as all layer3-packets fail to get parsed properly (due to different offsets in the packet, wrong protocols will be determined for instance). This change inherits the basic idea from `<libpnet/examples/packetdump.rs>` to check if it's possible to parse version info using the IpPacket-parsers and if that fails, the sniffer will fall-back to the ethernet-based approach.
2020-01-07Update snapshots because new process identification logic changes outputKelvin Zhang
2020-01-07fix(ui): add spacing between the up and down bandwidth values for ↵Hugo Locurcio
readability (#58)
2019-12-20test(interfaces): update snapshots to expect the interface nameEduardo Broto
2019-11-05feat(raw): machine friendly outputAram Drevekenin