Generate an ID for test data. Every time this function is called, it will return a new unique ID.
()
| 33 | /// |
| 34 | /// Every time this function is called, it will return a new unique ID. |
| 35 | pub fn next_unique_id() -> u64 { |
| 36 | UNIQUE_ID.with(|counter| { |
| 37 | let mut counter = counter.borrow_mut(); |
| 38 | *counter += 1; |
| 39 | *counter |
| 40 | }) |
| 41 | } |
| 42 | |
| 43 | pub struct StationDataGenerator<'a> { |
| 44 | env: &'a PocketIc, |
no outgoing calls
no test coverage detected