});
let state = State {
repo_path: &repo_path,
repo: repo.as_ref(),
cursor: &cursor,
record_msg: record_msg.as_ref(),
diffs_state: &diffs_state,
};
test_view(
&mut results,
uniq_name,
view(state, window_id, |_id| Some(&diff)),
size,
);
// _________________________________________________________________________
//
let uniq_name = "app_loaded_non_empty_repo";
let repo = Some(repo::State {
dir_name: "path".to_string(),
channel: "some_channel".to_string(),
untracked_files: BTreeSet::from_iter([
"untracked.rs".to_string(),
"a_very_veeeerrrrrrrrrryyyyyy_looooooooooonnnnnggggggg_name.rs"
.to_string(),
"a/sub/dir/somewhere/deep/untracked_file.rs".to_string(),
]),
changed_files: BTreeMap::from_iter([(
"changed_file.rs".to_string(),
BTreeSet::default(),
),
(
"also_a_very_veeeerrrrrrrrrryyyyyy_looooooooooonnnnnggggggg_name.rs"
.to_string(),
BTreeSet::default(),
),
(
"a/sub/dir/somewhere/deep/changed_file.rs".to_string(),
BTreeSet::default(),
),
]),
log: vec![repo::LogEntry {
hash: pijul::Hash::None,
message: "the very last change".to_string(),
file_paths: vec![],
}],