add a test for hover btn and more refactors
[?]
May 17, 2025, 7:45 PM
3BK22XE5LPOH2EK5AMRXFXHNQNCJ54HEPYRINHJT4DA7INT32I7ACDependencies
- [2]
WT3GA27Padd cursor with selection - [3]
MJDGPSHGWIP contents diff - [4]
GWZGYNIBadd view crate - [5]
23SFYK4Qbig view refactor into a new crate - [6]
OPXFZKEBview tests setup - [7]
MYGIBRRHwip custom theme - [8]
PKJCFSBMtheme improvements - [9]
XSZZB47Urefactor stuff into lib - [10]
NWJD6VM6mv libflowers libflorescence - [11]
3QVNMRNMtest non-empty repo app view - [12]
ZVI4AWERwoot contents_diff - [*]
BFN2VHZSrefactor file stuff into sub-mod
Change contents
- edit in libflorescence/src/diff.rs at line 107[9.3090]
pub fn contents_to_lines(contents: &str) -> Lines {contents.split('\n').map(str::to_string).collect()} - edit in inflorescence_view/src/testing.rs at line 1
#[doc(inline)]pub use iced_test::selector; - edit in inflorescence_view/src/testing.rs at line 47
results: &mut Vec<TestViewResult<'b>>,uniq_name: &'b str,element: impl Into<Element<'a, Message, Theme, Renderer>>,size: Size,) whereRenderer: iced::advanced::Renderer + iced::advanced::renderer::Headless,{test_view_change_sim(results, uniq_name, element, size, |_sim| {})}/// The name of the test calling this function MUST start with "view".pub fn test_view_change_sim<'a, 'b, Message, Renderer, F>( - edit in inflorescence_view/src/testing.rs at line 63
change_sim: F, - edit in inflorescence_view/src/testing.rs at line 66
F: Fn(&mut Simulator<Message, Theme, Renderer>), - edit in inflorescence_view/src/testing.rs at line 79
change_sim(&mut sim); - edit in inflorescence_view/src/lib.rs at line 8
#[doc(inline)] - edit in inflorescence_view/src/lib.rs at line 10
#[doc(inline)] - edit in inflorescence_view/src/diff.rs at line 1
#[doc(inline)] - replacement in inflorescence_view/src/diff.rs at line 3
Combined, DecodedFile, DiffWithContents, DiffWithoutContents, File, Lines,Section, State, UndecodableContents, UndecodableFile,contents_to_lines, Combined, DecodedFile, DiffWithContents,DiffWithoutContents, File, Lines, Section, State, UndecodableContents,UndecodableFile, - edit in inflorescence_view/src/diff.rs at line 30
pub fn contents_to_lines(contents: &str) -> Lines {contents.split('\n').map(str::to_string).collect()} - replacement in inflorescence_view/src/app/test.rs at line 2
use crate::testing::{report_results, test_view, Size};use crate::testing::{report_results, selector, test_view, test_view_change_sim, Size,}; - edit in inflorescence_view/src/app/test.rs at line 103
&mut results,uniq_name,view(state, window_id, |_id| Some(&diff)),size,);// _________________________________________________________________________//let uniq_name = "app_loaded_point_at_untracked";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_change_sim( - edit in inflorescence_view/src/app/test.rs at line 125
|sim| {let target = sim.find(selector::text("untracked.rs")).unwrap();sim.point_at(target.bounds.center());}, - edit in inflorescence/src/file.rs at line 3
#[doc(inline)] - replacement in inflorescence/src/diff.rs at line 3
pub use inflorescence_view::diff::*;#[doc(inline)]pub use inflorescence_view::diff::Msg;#[doc(inline)]pub use libflorescence::diff::{contents_to_lines, Combined, DecodedFile, DiffWithContents,DiffWithoutContents, File, Lines, Section, State, UndecodableContents,UndecodableFile,}; - edit in inflorescence/src/cursor.rs at line 1
#[doc(inline)]