-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use
assert_debug_snapshot
for large string outputs
- This makes snapshots more human-inspectable
- Loading branch information
Showing
35 changed files
with
3,953 additions
and
213 deletions.
There are no files selected for viewing
56 changes: 52 additions & 4 deletions
56
src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 52 additions & 4 deletions
56
src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 52 additions & 4 deletions
56
src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 52 additions & 4 deletions
56
src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 52 additions & 4 deletions
56
src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap
Large diffs are not rendered by default.
Oops, something went wrong.
109 changes: 104 additions & 5 deletions
109
src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap
Large diffs are not rendered by default.
Oops, something went wrong.
67 changes: 62 additions & 5 deletions
67
...snapshots/bandwhich__tests__cases__ui__layout-full-width-under-30-height-draw_events.snap
Large diffs are not rendered by default.
Oops, something went wrong.
109 changes: 104 additions & 5 deletions
109
...napshots/bandwhich__tests__cases__ui__layout-under-120-width-full-height-draw_events.snap
Large diffs are not rendered by default.
Oops, something went wrong.
67 changes: 62 additions & 5 deletions
67
...hots/bandwhich__tests__cases__ui__layout-under-120-width-under-30-height-draw_events.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,65 @@ | ||
--- | ||
source: src/tests/cases/ui.rs | ||
expression: terminal_draw_events.lock().unwrap().deref() | ||
expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) | ||
--- | ||
[ | ||
" Total Up / Down: 0Bps / 0Bps \n┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐\n│Process Connections Up / Down │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n│ │\n└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n Press <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden). \n", | ||
" 98Bps \n \n \n 5 1 0Bps / 28Bps \n 4 1 0Bps / 26Bps \n 1 1 0Bps / 22Bps \n 2 1 0Bps / 21Bps \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n", | ||
] | ||
Total Up / Down: 0Bps / 0Bps | ||
┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│Process Connections Up / Down │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
Press <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden). | ||
|
||
--- SECTION SEPARATOR --- | ||
98Bps | ||
|
||
|
||
5 1 0Bps / 28Bps | ||
4 1 0Bps / 26Bps | ||
1 1 0Bps / 22Bps | ||
2 1 0Bps / 21Bps | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.