Skip to main content

neo_test

Attribute Macro neo_test 

Source
#[neo_test]
Expand description

Neo N3 Test macro

This macro generates test functions for a Neo N3 contract.

§Example

#[neo_test]
pub fn test_my_contract() {
    let contract = MyContract::new();
    assert_eq!(contract.get_name().unwrap(), NeoString::from_str("MyContract"));
}