Skip to main content

test_claim

Function test_claim 

Source
fn test_claim(source: &str, contract: &str, function: &str) -> Option<String>
Expand description

Returns the comment right above a test function, without comment markers, as one line. The function is the first one with this name after the contract declaration and before the next one. Declarations are searched outside comments, so a claim such as the contract pays twice is not a declaration.