Checks if the current test is an instance of the specified test. @param test test to be checked @return result of check
(final Test test)
| 142 | * @return result of check |
| 143 | */ |
| 144 | public boolean instanceOf(final Test test) { |
| 145 | if(test instanceof final UnionTest ut) { |
| 146 | for(final Test t : ut.tests) { |
| 147 | if(instanceOf(t)) return true; |
| 148 | } |
| 149 | return false; |
| 150 | } |
| 151 | return test.kind == kind || test.kind == Kind.NODE; |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Computes the intersection between two tests. |
no outgoing calls
no test coverage detected