Skip to content

Commit

Permalink
Don't use assert_debug_snapshot for large string outputs
Browse files Browse the repository at this point in the history
- This makes snapshots more human-inspectable
  • Loading branch information
cyqsimon committed Oct 17, 2023
1 parent 763be53 commit df091f3
Show file tree
Hide file tree
Showing 35 changed files with 3,953 additions and 213 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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























Loading

0 comments on commit df091f3

Please sign in to comment.