summaryrefslogtreecommitdiffstats
path: root/src/tests
AgeCommit message (Collapse)Author
2024-01-28chore(deps): bump ratatui from 0.24.0 to 0.25.0 (#348)dependabot[bot]
* chore(deps): bump ratatui from 0.24.0 to 0.25.0 Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.24.0 to 0.25.0. - [Release notes](https://github.com/ratatui-org/ratatui/releases) - [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md) - [Commits](https://github.com/ratatui-org/ratatui/compare/v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: ratatui dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update API changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2023-12-08Show interface names (#340)ilyes-ced
* added interface names * some fixes * Set interface name in UI only once * Code style * Add changelog entry --------- Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2023-11-01Bump ratatui to 0.24.0 (#327)cyqsimon
2023-10-26Minor code style improvements (#312)cyqsimon
- Build regex only once using `once_cell::sync::Lazy` - Reduce code duplication
2023-10-21Refactor `OsInputOutput` (combine interfaces & frames into single Vec) (#310)cyqsimon
* Refactor `OsInputOutput` (combine interfaces & frames into single Vec) * Add note on handling a separate failure case * Reduce code duplication
2023-10-19Table formatting logic overhaul (#305)cyqsimon
* Table formatting logic overhaul - Columns now auto-expand and auto-shrink proportionally - Data column selection logic is now set per-table - Necessary boilerplate added to allow tables with more (or fewer) columns in the future * Better naming: `TableLayout` -> `DisplayLayout` * Fix clippy complaints * Optimise layout cutoff widths - These values are pretty much arbitrary. I'm open to further optimising them in the future. * Updated test snapshots to match new layout settings * Remove unnecessary logging * Correct `debug_fn` impl for `column_selector` * Further optimise bandwidth column display * Update test snapshots * Layout width preset minor adjustment
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-11Fix clippy complaintscyqsimon
2023-10-11Reduce repitition using default `Opts`cyqsimon
2023-10-11Never use `&Option` in function signaturecyqsimon
2023-10-11Minor refactor of `main.rs` (#301)cyqsimon
* Move CLI structs to their own file * `main` returns `Result` directly * Slightly reduced nesting
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
2023-08-25Use variable capture syntax in format macros where possiblecyqsimon
2023-08-25Compact importscyqsimon
2023-08-25update testsNbiba Bedis
2023-08-25Switch from `tui` to `ratatui`cyqsimon
2023-08-25Temporarily switch to patched fork of `packet-builder`cyqsimon
2023-08-14Bump incompatible depscyqsimon
- Binary build is fixed, but `packet_builder` crate seems to have some issues
2020-10-15style(clippy): minor fixAram Drevekenin
2020-10-01feat(dns): allow custom dns server as cli flag (#193)Aram Drevekenin
* feat(dns): allow custom dns server as cli flag * fix(style): remove commented debugging line (oops)
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-03feat(infra): replace termion with Windows compatible crossterm (#179)remgodow
* Replace termion backend with crossterm, which works on Windows as well. * Remove tui default-features (termion), update unit tests for crossterm. * Fix formatting.
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-16Merge remote-tracking branch 'origin/master' into issue-163-elapsed-timeRupert Rutledge
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-05-03style(lint): make clippy happy on all channelsAram Drevekenin
2020-05-03chore(deps): remove pnet_bandwhich_fork and upgrade to latest pnet + ↵Aram Drevekenin
packet_builder releases
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-14Merge pull request #70 from zhangxp1998/ipv6ebroto
Support Ipv6
2020-01-14Address code review commnetsKelvin Zhang
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-13Fix fake_input loopback flag set to 1 issueKelvin Zhang
2020-01-13Parse ipv6 entries from lsofKelvin Zhang
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