From 9f1a10f687421724cbbb82098f8c41aa274038bc Mon Sep 17 00:00:00 2001 From: Chris Overcash Date: Sat, 23 Nov 2024 16:30:51 -0600 Subject: [PATCH] chore: remove dumb snapshot --- ollama-cli/src/tui/event/mod.rs | 4 +- ...ui__event__tests__load_default_keymap.snap | 475 ------------------ 2 files changed, 1 insertion(+), 478 deletions(-) delete mode 100644 ollama-cli/src/tui/event/snapshots/ollama_cli__tui__event__tests__load_default_keymap.snap diff --git a/ollama-cli/src/tui/event/mod.rs b/ollama-cli/src/tui/event/mod.rs index 385c6c6..fe64631 100644 --- a/ollama-cli/src/tui/event/mod.rs +++ b/ollama-cli/src/tui/event/mod.rs @@ -110,8 +110,6 @@ mod tests { #[test] fn load_default_keymap() { - let event_definitions: EventDefinitions = toml::from_str(DEFAULTS).unwrap(); - - assert_debug_snapshot!(event_definitions); + let _event_definitions: EventDefinitions = toml::from_str(DEFAULTS).unwrap(); } } diff --git a/ollama-cli/src/tui/event/snapshots/ollama_cli__tui__event__tests__load_default_keymap.snap b/ollama-cli/src/tui/event/snapshots/ollama_cli__tui__event__tests__load_default_keymap.snap deleted file mode 100644 index 599b6b0..0000000 --- a/ollama-cli/src/tui/event/snapshots/ollama_cli__tui__event__tests__load_default_keymap.snap +++ /dev/null @@ -1,475 +0,0 @@ ---- -source: ollama-cli/src/tui/event/mod.rs -expression: event_definitions -snapshot_kind: text ---- -EventDefinitions( - { - Edit: ActionMap( - { - Key { - event: KeyEvent { - code: Esc, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Esc, - }, - ), - }: Escape, - Key { - event: KeyEvent { - code: Down, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Down, - }, - ), - }: Down, - Key { - event: KeyEvent { - code: Enter, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Enter, - }, - ), - }: Enter, - Key { - event: KeyEvent { - code: Backspace, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Backspace, - }, - ), - }: Backspace, - Key { - event: KeyEvent { - code: Left, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Left, - }, - ), - }: Left, - Key { - event: KeyEvent { - code: Up, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Up, - }, - ), - }: Up, - }, - ), - Normal: ActionMap( - { - Key { - event: KeyEvent { - code: Char( - '0', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - '0', - ), - }, - ), - }: Beginning, - Key { - event: KeyEvent { - code: Left, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Left, - }, - ), - }: Left, - Key { - event: KeyEvent { - code: Char( - 'j', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'j', - ), - }, - ), - }: Down, - Key { - event: KeyEvent { - code: Char( - 'a', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'a', - ), - }, - ), - }: Edit, - Key { - event: KeyEvent { - code: Char( - 'w', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'w', - ), - }, - ), - }: RightWord, - Key { - event: KeyEvent { - code: Char( - 'i', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'i', - ), - }, - ), - }: Edit, - Key { - event: KeyEvent { - code: Char( - 'q', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'q', - ), - }, - ), - }: Quit, - Key { - event: KeyEvent { - code: Char( - 'h', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'h', - ), - }, - ), - }: Left, - Key { - event: KeyEvent { - code: Up, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Up, - }, - ), - }: Up, - Key { - event: KeyEvent { - code: Char( - 'k', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'k', - ), - }, - ), - }: Up, - Key { - event: KeyEvent { - code: Esc, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Esc, - }, - ), - }: Escape, - Key { - event: KeyEvent { - code: Char( - 'r', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'r', - ), - }, - ), - }: Refresh, - Key { - event: KeyEvent { - code: Enter, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Enter, - }, - ), - }: Enter, - Key { - event: KeyEvent { - code: Backspace, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Backspace, - }, - ), - }: Left, - Key { - event: KeyEvent { - code: Down, - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Down, - }, - ), - }: Down, - Key { - event: KeyEvent { - code: Char( - 'b', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - 'b', - ), - }, - ), - }: LeftWord, - Key { - event: KeyEvent { - code: Char( - '$', - ), - modifiers: KeyModifiers( - 0x0, - ), - kind: Press, - state: KeyEventState( - 0x0, - ), - }, - node: Some( - Node { - modifiers: 0, - key: Char( - '$', - ), - }, - ), - }: End, - }, - ), - }, -)