Fix missing methods in null tester

This commit is contained in:
Héctor Ramón Jiménez 2025-06-03 09:55:32 +02:00
parent ff0bbf5283
commit a7cf2642c7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1,6 +1,7 @@
use crate::Program;
use crate::core::window;
use crate::core::{Element, Theme};
use crate::futures::Subscription;
use crate::runtime::Task;
use crate::widget::horizontal_space;
@ -23,6 +24,10 @@ impl<P: Program> Tester<P> {
Self { _type: PhantomData }
}
pub fn is_idle(&self) -> bool {
true
}
pub fn is_busy(&self) -> bool {
false
}
@ -35,6 +40,10 @@ impl<P: Program> Tester<P> {
Task::none()
}
pub fn subscription(&self, _program: &P) -> Subscription<Tick<P>> {
Subscription::none()
}
pub fn view<'a, T: 'static>(
&'a self,
_program: &P,