()
| 1299 | |
| 1300 | #[tokio::test] |
| 1301 | async fn check_vote_not_found() { |
| 1302 | let mut db = MockDB::new(); |
| 1303 | db.expect_get_open_vote() |
| 1304 | .with(eq(REPOFN), eq(ISSUE_NUM)) |
| 1305 | .times(1) |
| 1306 | .returning(|_, _| Box::pin(future::ready(Ok(None)))); |
| 1307 | let gh = MockGH::new(); |
| 1308 | |
| 1309 | let (_, cmds_rx) = async_channel::unbounded(); |
| 1310 | let event = setup_test_pr_event(); |
| 1311 | let cmds_handler = CommandsHandler::new(Arc::new(db), Arc::new(gh), cmds_rx); |
| 1312 | cmds_handler.check_vote(&CheckVoteInput::new(&Event::PullRequest(event))).await.unwrap(); |
| 1313 | } |
| 1314 | |
| 1315 | #[tokio::test] |
| 1316 | async fn check_vote_checked_recently() { |
nothing calls this directly
no test coverage detected