[][src]Type Definition lab_grader::submission::TestData

type TestData = HashMap<String, String>;

A type alias to HashMap<String, String>

This is the data type that all criteria accept, and how data is stored in a submission

Trait Implementations

impl AsCsv for TestData[src]

fn as_csv(&self) -> String[src]

Returns the test data, serialized to a csv string. It will be sorted alphabetically by key.

fn filename(&self) -> String[src]

Returns the filename that the ResultsFile uses as its output

This probably shouldn't get used for test data, as it will be written as part of a submission, not on it's own.

fn header(&self) -> String[src]

Returns a header to write to a csv file. This should match the fields in as_csv above.