* @brief Test given DIFFITEM against filefilter. * @param [in] di DIFFITEM to test * @return true if DIFFITEM passes the filter */
| 319 | * @return true if DIFFITEM passes the filter |
| 320 | */ |
| 321 | bool FileFilter::TestFileDiffItemAgainstFilter(const DIFFITEM& di) const |
| 322 | { |
| 323 | bool matched = TestAgainstRegList(&filefilters, di); |
| 324 | if (!matched && TestAgainstExpressionList(&fileExpressionFilters, di)) |
| 325 | matched = true; |
| 326 | if (matched) |
| 327 | { |
| 328 | matched = !TestAgainstRegList(&filefiltersExclude, di); |
| 329 | if (matched) |
| 330 | matched = !TestAgainstExpressionList(&fileExpressionFiltersExclude, di); |
| 331 | } |
| 332 | if (matched) |
| 333 | return !default_include; |
| 334 | return default_include; |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * @brief Test given directory name against filefilter. |
no test coverage detected