Trait litcheck_lit::format::TestFormat
source · pub trait TestFormat: Debug {
// Required methods
fn name(&self) -> &'static str;
fn registry(&self) -> &dyn TestRegistry;
fn execute(&self, test: &Test, config: &Config) -> DiagResult<TestResult>;
}
Required Methods§
sourcefn registry(&self) -> &dyn TestRegistry
fn registry(&self) -> &dyn TestRegistry
Get the test registry for this format
sourcefn execute(&self, test: &Test, config: &Config) -> DiagResult<TestResult>
fn execute(&self, test: &Test, config: &Config) -> DiagResult<TestResult>
Executes test
using this test format, and the provided config
.