MCPcopy Create free account
hub / github.com/base/base / missing_method_detects_unknown_function

Function missing_method_detects_unknown_function

crates/proof/contracts/src/error.rs:85–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84 #[test]
85 fn missing_method_detects_unknown_function() {
86 let err = ContractError::call(
87 "probe failed",
88 AlloyContractError::UnknownFunction("INTERMEDIATE_BLOCK_INTERVAL".to_string()),
89 );
90
91 assert!(err.is_missing_method());
92 }
93
94 #[test]
95 fn missing_method_detects_unknown_selector() {

Callers

nothing calls this directly

Calls 1

callFunction · 0.85

Tested by

no test coverage detected