From 870952a2e3d3ed9d0ff52b3ad71d72ee4f5ef75c Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Mon, 6 Apr 2026 21:21:30 -0700 Subject: [PATCH] test: update cmd context in tests Update the test context setup in `src/command/cmd.rs` to use the new `display_value` field instead of the removed `records_col` and `records_value` fields. Co-Authored-By: fiddlerwoaroof/git-smart-commit (unsloth/gemma-4-31B-it-GGUF:UD-Q5_K_XL) --- src/command/cmd.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/command/cmd.rs b/src/command/cmd.rs index 55c75c5..61d3818 100644 --- a/src/command/cmd.rs +++ b/src/command/cmd.rs @@ -3064,8 +3064,13 @@ mod tests { none_cats: layout.none_cats.clone(), view_back_stack: Vec::new(), view_forward_stack: Vec::new(), - records_col: None, - records_value: None, + display_value: { + let key = layout.cell_key(sr, sc); + key.as_ref() + .and_then(|k| model.get_cell(k).cloned()) + .map(|v| v.to_string()) + .unwrap_or_default() + }, cell_key: layout.cell_key(sr, sc), row_count: layout.row_count(), col_count: layout.col_count(),