Function isIgnored
Check if a file should be ignored from the report
bool isIgnored
(
const(string) content
);
Example
It should return true for ignored coverage files
"// IGNORE COVERAGE" .isIgnored .should .equal(true);
"// \t IGNORE \t COVERAGE" .isIgnored .should .equal(true);
"// ignore coverage" .isIgnored .should .equal(true);
"//IGNORE COVERAGE" .isIgnored .should .equal(true);
"/////IGNORE COVERAGE" .isIgnored .should .equal(true);
"// IGNORE COVERAGE " .isIgnored .should .equal(true);
"/* IGNORE COVERAGE */" .isIgnored .should .equal(true);
"/***** IGNORE COVERAGE " .isIgnored .should .equal(true);
"/***** IGNORE COVERAGE ****/" .isIgnored .should .equal(true);
"/+ IGNORE COVERAGE +/" .isIgnored .should .equal(true);
"/+++++ IGNORE COVERAGE " .isIgnored .should .equal(true);
"/+++++ IGNORE COVERAGE +++++/" .isIgnored .should .equal(true);
Example
It should return false for when the ignore coverage file is missing
"" .isIgnored .should .equal(false);
"//\nIGNORE COVERAGE" .isIgnored .should .equal(false);
"//\nIGNORE COVERAGE" .isIgnored .should .equal(false);
"/////\nIGNORE COVERAGE" .isIgnored .should .equal(false);
"//\n IGNORE COVERAGE " .isIgnored .should .equal(false);
"/*\n IGNORE COVERAGE */" .isIgnored .should .equal(false);
"/***** \n IGNORE COVERAGE " .isIgnored .should .equal(false);
"/***** \n IGNORE COVERAGE ****/" .isIgnored .should .equal(false);
"/+ \n IGNORE COVERAGE +/" .isIgnored .should .equal(false);
"/+++++ \n IGNORE COVERAGE " .isIgnored .should .equal(false);
"/+++++ \n IGNORE COVERAGE +++++/" .isIgnored .should .equal(false);
"// IGNORE\nCOVERAGE" .isIgnored .should .equal(false);
"//IGNORE\nCOVERAGE" .isIgnored .should .equal(false);