test record when nothing to record
[?]
Jun 3, 2025, 6:59 PM
OC6DLIZ3BKN5ZCDK77653XBR4DSTCFRXUGWDSKVGGJQNM7QZHJBACDependencies
- [2]
A5YBC77Vrecord! - [3]
I56UGW7Umake record test, fix log update - [4]
YYKXNBFLtest: add untracked file - [5]
ESMM3FELtest selection reindexing - [6]
UF5NJKAStest load repo - [7]
SWDPAGF6test channel name - [8]
W7IUT3ZVstart recording impl - [9]
X6AK4QPXfinish recording test - [*]
SWWE2R6Mdisplay basic repo stuff - [*]
VCNKFNUFapp init test
Change contents
- replacement in libflorescence/src/repo.rs at line 426
panic!("Nothing to record?");panic!("Nothing to record"); - edit in inflorescence/src/test.rs at line 11
INITIAL_LOG_LEN, - replacement in inflorescence/src/test.rs at line 78
let initial_change_len = state.repo.as_ref().unwrap().log.len();assert_eq!(state.repo.as_ref().unwrap().log.len(), INITIAL_LOG_LEN); - replacement in inflorescence/src/test.rs at line 156
assert_eq!(state.repo.as_ref().unwrap().log.len(),initial_change_len + 1);assert_eq!(state.repo.as_ref().unwrap().log.len(), INITIAL_LOG_LEN + 1); - edit in inflorescence/src/test.rs at line 267
/// When there's nothing to record, trying to start recording does nothing#[test(tokio::test)]async fn test_start_record_when_nothing_to_record() {let TestState {mut state,tasks: _,fs_watch_task: _,id: _,repo: _repo,} = setup_state().await;let task = update(&mut state, Msg::StartRecord);assert!(task.is_none());assert!(state.record_msg.is_none());}