Learn R Programming

ottr (version 1.5.3)

GradingResults: An R6 class representing a collection of test case results

Description

A collection of test case results that correspond to a single test file.

Arguments

Public fields

test_file_results

The TestFileResult objects that make up this grading

Methods


Method new()

Create a grading result.

Usage

GradingResults$new(test_file_results)

Arguments

test_file_results

The TestFileResult objects that make up this grading result


Method 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
    }
  ]
}

Usage

GradingResults$to_list()

Returns

The generated list


Method to_json()

Export these results to a JSON string.

Usage

GradingResults$to_json()

Returns

The JSON string


Method clone()

The objects of this class are cloneable with this method.

Usage

GradingResults$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.