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

Function get_user

tests/integration/src/control_panel_tests.rs:784–790  ·  view source on GitHub ↗
(env: &PocketIc, control_panel_id: Principal, user_id: Principal)

Source from the content-addressed store, hash-verified

782}
783
784fn get_user(env: &PocketIc, control_panel_id: Principal, user_id: Principal) -> UserDTO {
785 let res: (ApiResult<GetUserResponse>,) =
786 update_candid_as(env, control_panel_id, user_id, "get_user", ((),)).unwrap();
787 let user_dto = res.0.unwrap().user;
788 assert_eq!(user_dto.identity, user_id);
789 user_dto
790}
791
792fn list_user_stations(
793 env: &PocketIc,

Callers 1

control_panel_upgradeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected