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)
This commit is contained in:
@ -3064,8 +3064,13 @@ mod tests {
|
|||||||
none_cats: layout.none_cats.clone(),
|
none_cats: layout.none_cats.clone(),
|
||||||
view_back_stack: Vec::new(),
|
view_back_stack: Vec::new(),
|
||||||
view_forward_stack: Vec::new(),
|
view_forward_stack: Vec::new(),
|
||||||
records_col: None,
|
display_value: {
|
||||||
records_value: None,
|
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),
|
cell_key: layout.cell_key(sr, sc),
|
||||||
row_count: layout.row_count(),
|
row_count: layout.row_count(),
|
||||||
col_count: layout.col_count(),
|
col_count: layout.col_count(),
|
||||||
|
|||||||
Reference in New Issue
Block a user