Skip to main content

load_cases

Function load_cases 

Source
pub fn load_cases(data: &Value) -> Result<Vec<Value>, EncodingError>
Expand description

Normalize the reference’s JSON case files (encoding/tests/*.json): a single case object, a bare message list, or a list of cases. A case-level tools list moves onto the first message, as the official load_cases does.