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

Function test_network_validation

core/station/impl/src/models/transfer.rs:267–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265
266 #[test]
267 fn test_network_validation() {
268 let mut transfer = mock_transfer();
269 transfer.blockchain_network = "icp:mainnet".to_string();
270
271 let result = validate_network(&transfer.blockchain_network);
272
273 assert!(result.is_ok());
274 }
275
276 #[test]
277 fn fail_network_too_long() {

Callers

nothing calls this directly

Calls 2

mock_transferFunction · 0.85
validate_networkFunction · 0.85

Tested by

no test coverage detected