#[non_exhaustive]pub struct FunctionTest {
pub fn_hash: String,
pub case: String,
pub test_json: Vec<u8>,
pub signed_by: String,
pub last_run_at: Option<String>,
pub last_result: Option<String>,
pub last_detail: Option<String>,
pub branches_total: u32,
pub branches_covered: u32,
}Expand description
A function test: a canonical test line of a function, stored once per (function hash,
case) (Store::put_function_test). The run fields are set by
Store::record_function_test; the branch counts by Store::set_function_branches,
which keeps them equal on every test of the function. Since 0.5.1.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fn_hash: StringThe function hash the test is of (64 lowercase hex digits).
case: StringThe case: 16 lowercase hex digits. Tests of a function are ordered by it.
test_json: Vec<u8>The test line, canonical (JCS) JSON.
signed_by: StringThe host or key id that wrote the test. The first writer’s: a later one changes nothing.
last_run_at: Option<String>When the test last ran (an instant), if it has.
last_result: Option<String>The result of the last run: pass, fail or error.
last_detail: Option<String>The detail of the last run.
branches_total: u32The branches of the function (the same on every test of the function).
branches_covered: u32The branches the function’s tests cover (the same on every test of the function).