(dev_eui: EUI64, channels: Vec<u32>)
| 77 | } |
| 78 | |
| 79 | pub fn enabled_uplink_channel_indices(dev_eui: EUI64, channels: Vec<u32>) -> Validator { |
| 80 | Box::new(move || { |
| 81 | let dev_eui = dev_eui; |
| 82 | let channels = channels.clone(); |
| 83 | Box::pin(async move { |
| 84 | let d = device::get(&dev_eui).await.unwrap(); |
| 85 | let ds = d.get_device_session().unwrap(); |
| 86 | assert_eq!(channels, ds.enabled_uplink_channel_indices); |
| 87 | }) |
| 88 | }) |
| 89 | } |
| 90 | |
| 91 | pub fn dr(dev_eui: EUI64, dr: u32) -> Validator { |
| 92 | Box::new(move || { |
nothing calls this directly
no test coverage detected