Struct filecheck::Checker
[−]
[src]
pub struct Checker { /* fields omitted */ }
Verify a list of directives against a test input.
Use a CheckerBuilder
to construct a Checker
. Then use the test
method to verify the list
of directives against a test input.
Methods
impl Checker
[src]
pub fn is_empty(&self) -> bool
[src]
An empty checker contains no directives, and will match any input string.
pub fn check(&self, text: &str, vars: &VariableMap) -> Result<bool>
[src]
Verify directives against the input text.
This returns true
if the text matches all the directives, false
if it doesn't.
An error is only returned if there is a problem with the directives.
pub fn explain(&self, text: &str, vars: &VariableMap) -> Result<(bool, String)>
[src]
Explain how directives are matched against the input text.