use issun::auto_pump;
use issun::prelude::*;
pub async fn mock_pump(
_services: &ServiceContext,
_systems: &mut SystemContext,
_resources: &mut ResourceContext,
) {
}
pub struct TestScene {
pub value: i32,
}
impl TestScene {
#[auto_pump(pump_fn = mock_pump)]
pub async fn handle_input(
&mut self,
services: &ServiceContext,
systems: &mut SystemContext,
resources: &mut ResourceContext,
) -> i32 {
self.value += 1;
self.value
}
}
#[tokio::test]
async fn test_auto_pump_basic() {
let scene = TestScene { value: 0 };
assert_eq!(scene.value, 0);
}