mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
bump coverage to 34.17%
This commit is contained in:
parent
fd32cbc34c
commit
48fcd00926
3 changed files with 29 additions and 10 deletions
|
|
@ -0,0 +1,6 @@
|
||||||
|
use crate::*;
|
||||||
|
pub trait Device: Send + Sync + std::fmt::Debug {
|
||||||
|
fn boxed <'a> (self) -> Box<dyn Device + 'a> where Self: Sized + 'a { Box::new(self) }
|
||||||
|
}
|
||||||
|
impl Device for Sampler {}
|
||||||
|
impl Device for Plugin {}
|
||||||
|
|
@ -145,8 +145,3 @@ impl Tek {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub trait Device: Send + Sync + std::fmt::Debug {
|
|
||||||
fn boxed <'a> (self) -> Box<dyn Device + 'a> where Self: Sized + 'a { Box::new(self) }
|
|
||||||
}
|
|
||||||
impl Device for Sampler {}
|
|
||||||
impl Device for Plugin {}
|
|
||||||
|
|
|
||||||
|
|
@ -333,11 +333,29 @@ fn io_conns <'a, T: PortsSizes<'a>> (
|
||||||
use super::*;
|
use super::*;
|
||||||
#[test] fn test_view_arranger () {
|
#[test] fn test_view_arranger () {
|
||||||
let mut app = Tek::default();
|
let mut app = Tek::default();
|
||||||
|
let mut output = TuiOut::default();
|
||||||
app.editor = Some(Default::default());
|
app.editor = Some(Default::default());
|
||||||
let _ = io_ports(Reset, Reset, ||app.inputs_sizes());
|
app.scenes_add(5);
|
||||||
let _ = io_conns(Reset, Reset, ||app.outputs_sizes());
|
app.tracks_add(5, Some(5), &[], &[]);
|
||||||
let _ = app.per_track(|_, _|());
|
Content::render(&io_ports(Reset, Reset, ||app.inputs_sizes()), &mut output);
|
||||||
let _ = app.per_track_top(|_, _|());
|
Content::render(&io_conns(Reset, Reset, ||app.outputs_sizes()), &mut output);
|
||||||
let _ = app.redraw_arranger();
|
Content::render(&app.per_track(|_, _|()), &mut output);
|
||||||
|
Content::render(&app.per_track_top(|_, _|()), &mut output);
|
||||||
|
app.redraw_arranger();
|
||||||
|
Content::render(&app.view_arranger(), &mut output);
|
||||||
|
Content::render(&app.view_inputs(), &mut output);
|
||||||
|
Content::render(&app.view_outputs(), &mut output);
|
||||||
|
Content::render(&track_header(0, &Default::default(), true), &mut output);
|
||||||
|
Content::render(&scene_cell(
|
||||||
|
false,
|
||||||
|
None,
|
||||||
|
false,
|
||||||
|
0,
|
||||||
|
&Default::default(),
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
&"",
|
||||||
|
Default::default(),
|
||||||
|
), &mut output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue