turns a pattern off, by removing anything else associated with this pattern. If other rules (including the default) capture this output it will still be logged
(String pattern)
| 70 | * will still be logged |
| 71 | */ |
| 72 | static public void off(String pattern) { |
| 73 | earlyFail.invalidateAll(); |
| 74 | Iterator<Pair<Pattern, BiConsumer<String, Object>>> i = active.iterator(); |
| 75 | while (i.hasNext()) { |
| 76 | if (i.next().first.equals(pattern)) i.remove(); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * turns a pattern off completely. All things that are associated with this pattern are removed, and a rule matching this pattern is added |
no test coverage detected