test record when nothing to record

[?]
Jun 3, 2025, 6:59 PM
OC6DLIZ3BKN5ZCDK77653XBR4DSTCFRXUGWDSKVGGJQNM7QZHJBAC

Dependencies

Change contents

  • replacement in libflorescence/src/repo.rs at line 426
    [2.1935][2.1935:1973]()
    panic!("Nothing to record?");
    [2.1935]
    [2.1973]
    panic!("Nothing to record");
  • edit in inflorescence/src/test.rs at line 11
    [7.3792]
    [3.1578]
    INITIAL_LOG_LEN,
  • replacement in inflorescence/src/test.rs at line 78
    [6.4300][4.88:157](),[3.2194][4.88:157]()
    let initial_change_len = state.repo.as_ref().unwrap().log.len();
    [6.4300]
    [3.2194]
    assert_eq!(state.repo.as_ref().unwrap().log.len(), INITIAL_LOG_LEN);
  • replacement in inflorescence/src/test.rs at line 156
    [3.4386][3.4386:4488]()
    assert_eq!(
    state.repo.as_ref().unwrap().log.len(),
    initial_change_len + 1
    );
    [3.4341]
    [3.4488]
    assert_eq!(state.repo.as_ref().unwrap().log.len(), INITIAL_LOG_LEN + 1);
  • edit in inflorescence/src/test.rs at line 267
    [4.159]
    [5.179]
    /// 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());
    }