Fix missing methods in null tester
This commit is contained in:
parent
ff0bbf5283
commit
a7cf2642c7
1 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
use crate::Program;
|
use crate::Program;
|
||||||
use crate::core::window;
|
use crate::core::window;
|
||||||
use crate::core::{Element, Theme};
|
use crate::core::{Element, Theme};
|
||||||
|
use crate::futures::Subscription;
|
||||||
use crate::runtime::Task;
|
use crate::runtime::Task;
|
||||||
use crate::widget::horizontal_space;
|
use crate::widget::horizontal_space;
|
||||||
|
|
||||||
|
|
@ -23,6 +24,10 @@ impl<P: Program> Tester<P> {
|
||||||
Self { _type: PhantomData }
|
Self { _type: PhantomData }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_idle(&self) -> bool {
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
pub fn is_busy(&self) -> bool {
|
pub fn is_busy(&self) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
@ -35,6 +40,10 @@ impl<P: Program> Tester<P> {
|
||||||
Task::none()
|
Task::none()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn subscription(&self, _program: &P) -> Subscription<Tick<P>> {
|
||||||
|
Subscription::none()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn view<'a, T: 'static>(
|
pub fn view<'a, T: 'static>(
|
||||||
&'a self,
|
&'a self,
|
||||||
_program: &P,
|
_program: &P,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue