fn missing_clause_failure(test_file: &Test<PathBuf>, clause: String) -> ErrorMsgRef {
        let clause_delim = get_clause_delim(&clause);
        let test_name = test_file.name.to_owned();
        let printer = move |printer: &mut dyn LinePrinter| {
            printer! { printer
                Failure:    "{} clause missing in test case.", clause_delim;
                Suggestion: "Add a\n\
                            \n\
                            \t{}\n\
                            \t<text>\n\
                            \t{}\n\
                            \n\
                            section to the test file.",
                            clause_delim,
                            clause_delim;
            };
            if can_be_blessed(&clause) {
                printer! { printer
                    Suggestion: "You can run `{}` to do this for you.", get_bless_cmd(&test_name);
                };
            }
        };
        let mut outcome_lk = TEST_CONSTRUCTION_FAIL
            .write()
            .expect("Test outcome map poisoned.");
        let i = outcome_lk.len();
        outcome_lk.insert(i, Box::new(printer));
        i
    }
/// Creates an error for a missing clause in a test file and returns a reference to where it is
/// stored in TEST_CONSTRUCTION_FAIL.
Creates an error for a missing clause in a test file and returns a reference to where it is
stored in TEST_CONSTRUCTION_FAIL.
Creates an error for a missing clause in a test file and returns a reference to where it is stored in TEST_CONSTRUCTION_FAIL .
fn missing_clause_failure(test_file: &Test<PathBuf>, clause: String) -> ErrorMsgRef {
        let clause_delim = get_clause_delim(&clause);
        let test_name = test_file.name.to_owned();
        let printer = move |printer: &mut dyn LinePrinter| {
            printer! { printer
                Failure:    "{} clause missing in test case.", clause_delim;
                Suggestion: "Add a\n\
                            \n\
                            \t{}\n\
                            \t<text>\n\
                            \t{}\n\
                            \n\
                            section to the test file.",
                            clause_delim,
                            clause_delim;
            };
            if can_be_blessed(&clause) {
                printer! { printer
                    Suggestion: "You can run `{}` to do this for you.", get_bless_cmd(&test_name);
                };
            }
        };
        let mut outcome_lk = TEST_CONSTRUCTION_FAIL
            .write()
            .expect("Test outcome map poisoned.");
        let i = outcome_lk.len();
        outcome_lk.insert(i, Box::new(printer));
        i
    }
fn missing_clause_failure ( test_file : & Test < PathBuf > , clause : String ) -> ErrorMsgRef { let clause_delim = get_clause_delim ( & clause ) ; let test_name = test_file . name . to_owned ( ) ; let printer = move | printer : & mut dyn LinePrinter | { printer ! { printer Failure " " clause_delim Suggestion " \n \
 \n \
 \t \n \
 \t \n \
 \t \n \
 \n \
 " clause_delim clause_delim } ; if can_be_blessed ( & clause ) { printer ! { printer Suggestion " " get_bless_cmd ( test_name ) } ; } } ; let mut outcome_lk = TEST_CONSTRUCTION_FAIL . write ( ) . expect ( " " ) ; let i = outcome_lk . len ( ) ; outcome_lk . insert ( i , Box :: new ( printer ) ) ; i }
Creates an error for a missing clause in a test file and returns a reference to where it is
stored in TEST_CONSTRUCTION_FAIL.
Creates an error for a missing clause in a test file and returns a reference to where it is stored in TEST_CONSTRUCTION_FAIL .
test_file
&Test<PathBuf>
clause
String
test_file
&Test<PathBuf>
clause
String