TestFileResult | R Documentation |
A collection of test case results that correspond to a single test file.
test_case_results
The TestCaseResult objects that make up this test file
filename
The name of the test file
points
The point value of the test file or a list of test case point values
new()
Create a test file result.
TestFileResult$new(filename, test_case_results, points = NULL)
filename
The name of the test file
test_case_results
The TestCaseResult objects that make up this test file
points
The point value of the test file or a list of test case point values
get_basename()
Get the basename of the file this result corresponds to.
TestFileResult$get_basename()
The basename of the test file
get_score()
Get the total score earned for this test file as a percentage. Uses
TestCaseResult$get_score()
to determine the points earned for each test
case.
TestFileResult$get_score()
The score as a percentage.
repr()
Convert this result into a human-readable string for display.
TestFileResult$repr()
The string representation of this result
to_list()
Convert this result to a JSON-compatible list with all of its fields.
TestFileResult$to_list()
The list representation of this result
clone()
The objects of this class are cloneable with this method.
TestFileResult$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.