Struct k9::assertions::Assertion [−][src]
pub struct Assertion {
pub description: Option<String>,
pub name: String,
pub args_str: String,
pub failure_message: String,
}
Fields
description: Option<String>
Description of what’s being asserted to provide a bit more context in the error mesasge
name: String
the name of the assertion macro that was invoked. e.g. assert_equals
args_str: String
string containing all arguments passed to the assertion macro. e.g. “1 + 1, my_var”
failure_message: String
Assertion failure message, e.g. expected blah blah but got blah