Attribute Macro marine_rs_sdk_test::marine_test
source · [−]#[marine_test]
Expand description
This macro allows user to write tests for services in the following form:
#[marine_test(config = "/path/to/Config.toml", modules_dir = "path/to/service/modules")]
fn test(greeting: marine_test_env::greeting::ModuleInterface) {
let service_result = greeting.greeting("John".to_string());
assert_eq!(&service_result, "Hi, name!");
}