MCPcopy Create free account
hub / github.com/dfinity/orbit / next_unique_id

Function next_unique_id

tests/integration/src/station_test_data.rs:35–41  ·  view source on GitHub ↗

Generate an ID for test data. Every time this function is called, it will return a new unique ID.

()

Source from the content-addressed store, hash-verified

33///
34/// Every time this function is called, it will return a new unique ID.
35pub 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
43pub struct StationDataGenerator<'a> {
44 env: &'a PocketIc,

Callers 5

add_assetFunction · 0.50
add_accountFunction · 0.50
add_userFunction · 0.50
add_address_book_entryFunction · 0.50
add_named_ruleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected