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

Function deploy_test_canister

tests/integration/src/utils.rs:1161–1166  ·  view source on GitHub ↗
(env: &PocketIc, controller: Principal)

Source from the content-addressed store, hash-verified

1159}
1160
1161pub(crate) fn deploy_test_canister(env: &PocketIc, controller: Principal) -> Principal {
1162 let test_canister = create_canister(env, controller);
1163 let test_canister_wasm = get_canister_wasm("test_canister");
1164 env.install_canister(test_canister, test_canister_wasm, vec![], Some(controller));
1165 test_canister
1166}
1167
1168pub fn expect_await_call_result<T>(result: Vec<u8>) -> T
1169where

Calls 3

get_canister_wasmFunction · 0.85
install_canisterMethod · 0.80
create_canisterFunction · 0.70