(dev_eui: EUI64, tx_power: u32)
| 55 | } |
| 56 | |
| 57 | pub fn tx_power_index(dev_eui: EUI64, tx_power: u32) -> Validator { |
| 58 | Box::new(move || { |
| 59 | let dev_eui = dev_eui; |
| 60 | Box::pin(async move { |
| 61 | let d = device::get(&dev_eui).await.unwrap(); |
| 62 | let ds = d.get_device_session().unwrap(); |
| 63 | assert_eq!(tx_power, ds.tx_power_index); |
| 64 | }) |
| 65 | }) |
| 66 | } |
| 67 | |
| 68 | pub fn nb_trans(dev_eui: EUI64, nb_trans: u32) -> Validator { |
| 69 | Box::new(move || { |
nothing calls this directly
no test coverage detected