error: unsupported operation: can't call foreign function `decNumberFromInt32` on OS `linux`
()
| 334 | #[mz_ore::test(tokio::test)] |
| 335 | #[cfg_attr(miri, ignore)] // error: unsupported operation: can't call foreign function `decNumberFromInt32` on OS `linux` |
| 336 | async fn test_basic_usage() { |
| 337 | let (mut operator, _) = |
| 338 | make_test_operator(ShardId::new(), Antichain::from_elem(0.into())).await; |
| 339 | |
| 340 | // Reclock offsets 1 and 3 to timestamp 1000 |
| 341 | let source_upper = partitioned_frontier([(0, MzOffset::from(4))]); |
| 342 | let mut batch = operator |
| 343 | .mint( |
| 344 | 1000.into(), |
| 345 | Antichain::from_elem(1001.into()), |
| 346 | source_upper.borrow(), |
| 347 | ) |
| 348 | .await; |
| 349 | let mut expected_batch: ReclockBatch<_, Timestamp> = ReclockBatch { |
| 350 | updates: vec![ |
| 351 | ( |
| 352 | Partitioned::new_range(RB::NegInfinity, RB::before(0), MzOffset::from(0)), |
| 353 | 1000.into(), |
| 354 | Diff::ONE, |
| 355 | ), |
| 356 | ( |
| 357 | Partitioned::new_range(RB::after(0), RB::PosInfinity, MzOffset::from(0)), |
| 358 | 1000.into(), |
| 359 | Diff::ONE, |
| 360 | ), |
| 361 | ( |
| 362 | Partitioned::new_range(RB::NegInfinity, RB::PosInfinity, MzOffset::from(0)), |
| 363 | 1000.into(), |
| 364 | Diff::MINUS_ONE, |
| 365 | ), |
| 366 | ( |
| 367 | Partitioned::new_singleton(RB::exact(0), MzOffset::from(4)), |
| 368 | 1000.into(), |
| 369 | Diff::ONE, |
| 370 | ), |
| 371 | ], |
| 372 | upper: Antichain::from_elem(Timestamp::from(1001)), |
| 373 | }; |
| 374 | batch.updates.sort(); |
| 375 | expected_batch.updates.sort(); |
| 376 | assert_eq!(batch, expected_batch); |
| 377 | } |
| 378 | |
| 379 | #[mz_ore::test(tokio::test)] |
| 380 | #[cfg_attr(miri, ignore)] // error: unsupported operation: can't call foreign function `decNumberFromInt32` on OS `linux` |
nothing calls this directly
no test coverage detected