MCPcopy Create free account
hub / github.com/ecto/muni / test_drain_empty

Function test_drain_empty

bvr/firmware/crates/control-loop/src/command_processor.rs:199–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198 #[tokio::test]
199 async fn test_drain_empty() {
200 let (_tx, mut rx) = mpsc::channel::<Command>(16);
201
202 let mut processor = CommandProcessor::new();
203 let result = processor.drain(&mut rx);
204
205 assert!(result.latest_twist.is_none());
206 assert!(!result.has_commands());
207 }
208}

Callers

nothing calls this directly

Calls 1

drainMethod · 0.80

Tested by

no test coverage detected