A collection of test case results that correspond to a single test file.
test_file_resultsThe TestFileResult objects that make up this grading
new()Create a grading result.
GradingResults$new(test_file_results)test_file_resultsThe TestFileResult objects that make up this grading result
to_list()Convert these results to a JSON-like list that can be convert to a
GradingResults object by Otter's Python library.
The returned list has the JSON format
{
"test_file_results": [
{
// output of TestFileResult$to_list
}
]
}
GradingResults$to_list()The generated list
to_json()Export these results to a JSON string.
GradingResults$to_json()The JSON string
clone()The objects of this class are cloneable with this method.
GradingResults$clone(deep = FALSE)deepWhether to make a deep clone.