pocket-ic-harness 0.2.0

A test harness for Internet Computer canisters using PocketIC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use candid::Principal;

/// Returns the Alice test principal.
pub fn alice() -> Principal {
    Principal::from_text("be2us-64aaa-aaaaa-qaabq-cai").unwrap()
}

/// Returns the admin test principal.
pub fn admin() -> Principal {
    Principal::from_text("rrkah-fqaaa-aaaaa-aaaaq-cai").unwrap()
}

/// Returns the Bob test principal.
pub fn bob() -> Principal {
    Principal::from_text("bs5l3-6b3zu-dpqyj-p2x4a-jyg4k-goneb-afof2-y5d62-skt67-3756q-dqe").unwrap()
}