Skip to main content

verdict_from_json

Function verdict_from_json 

Source
pub fn verdict_from_json(value: &Value) -> Result<Verdict, String>
Expand description

Parses one verdict line, the inverse of verdict_to_json.

ยงErrors

A message naming the unknown or missing tag. An unrecognized verdict is never coerced to a neighbour: Passed would land untested work and Failed would eject a change on our own bug, so the only safe answer is to refuse the line.