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

Function add_transfer_successfully

core/station/impl/src/services/transfer.rs:174–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172
173 #[tokio::test]
174 async fn add_transfer_successfully() {
175 let ctx = setup().await;
176
177 disable_mock_resource_validation();
178
179 let mut transfer = mock_transfer();
180 transfer.initiator_user = ctx.caller_user.id;
181 transfer.from_account = ctx.account.id;
182
183 let result = ctx.service.add_transfer(transfer);
184
185 assert!(result.is_ok());
186 }
187
188 #[tokio::test]
189 async fn fail_add_transfer_missing_initiator_user() {

Callers

nothing calls this directly

Calls 4

mock_transferFunction · 0.85
add_transferMethod · 0.80
setupFunction · 0.70

Tested by

no test coverage detected