mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
flatten model module and add tests for view
This commit is contained in:
parent
5d900a303b
commit
c78dd2453a
7 changed files with 28 additions and 5 deletions
2
Justfile
2
Justfile
|
|
@ -10,7 +10,7 @@ covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-
|
|||
cov:
|
||||
rm -rf target/coverage/html || true
|
||||
{{covfig}} time cargo test --workspace --exclude jack --profile coverage
|
||||
{{covfig}} time grcov . --binary-path ./target/coverage/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||
{{covfig}} time grcov . --binary-path ./target/coverage/deps/ -s . -t html --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||
llcov:
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report --doc
|
||||
|
|
|
|||
|
|
@ -7,9 +7,14 @@
|
|||
#![feature(type_alias_impl_trait)]
|
||||
#![feature(trait_alias)]
|
||||
mod cli; pub use self::cli::*;
|
||||
mod model; pub use self::model::*;
|
||||
mod keys; pub use self::keys::*;
|
||||
mod audio; pub use self::audio::*;
|
||||
|
||||
mod model; pub use self::model::*;
|
||||
mod model_track; pub use self::model_track::*;
|
||||
mod model_scene; pub use self::model_scene::*;
|
||||
mod model_select; pub use self::model_select::*;
|
||||
|
||||
mod view; pub use self::view::*;
|
||||
mod view_memo; pub use self::view_memo::*;
|
||||
mod view_clock; pub use self::view_clock::*;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
use crate::*;
|
||||
mod scene; pub use self::scene::*;
|
||||
mod select; pub use self::select::*;
|
||||
mod track; pub use self::track::*;
|
||||
#[derive(Default, Debug)] pub struct Tek {
|
||||
/// Must not be dropped for the duration of the process
|
||||
pub jack: Jack,
|
||||
|
|
|
|||
|
|
@ -137,3 +137,24 @@ impl Tek {
|
|||
Bsp::e(Tui::fg_bg(bg, Reset, "▐"), Bsp::w(Tui::fg_bg(bg, Reset, "▌"),
|
||||
Tui::fg_bg(fg, bg, content))) }
|
||||
}
|
||||
#[cfg(test)] mod test {
|
||||
use super::*;
|
||||
#[test] fn test_view () {
|
||||
let app = Tek::default();
|
||||
let _ = app.view_editor();
|
||||
let _ = app.view_pool();
|
||||
let _ = app.w();
|
||||
let _ = app.w_sidebar();
|
||||
let _ = app.w_tracks_area();
|
||||
let _ = app.h();
|
||||
let _ = app.h_tracks_area();
|
||||
let _ = app.row(0, 0, "", "", "");
|
||||
let _ = app.row_top(0, 0, "", "", "");
|
||||
//let _ = app.io_ports(Reset, Reset, ||[].iter());
|
||||
//let _ = app.io_connections(Reset, Reset, ||[].iter());
|
||||
let _ = app.button2("", "");
|
||||
let _ = app.button3("", "", "");
|
||||
let _ = app.heading("", "", 0, "");
|
||||
let _ = Tek::wrap(Reset, Reset, "");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue