tests: implement graphview unit test

This commit is contained in:
Stéphane Cerveau 2022-01-26 14:40:22 +01:00
parent 620f6bf699
commit 2ddd49fa0d
2 changed files with 6 additions and 0 deletions

View file

@ -496,6 +496,11 @@ impl GraphView {
private.id.set(id)
}
pub fn id(&self) -> u32 {
let private = imp::GraphView::from_instance(self);
private.id.get()
}
/// Add node to the graphview without port
///
pub fn add_node(&self, node: Node) {

View file

@ -4,6 +4,7 @@ mod node;
mod port;
mod property;
mod selection;
mod tests;
pub use graphview::GraphView;
pub use link::Link;