JSON type: int @returns whether the declaration's number of uses matches the given value
| 72 | ///JSON type: int |
| 73 | ///@returns whether the declaration's number of uses matches the given value |
| 74 | DeclarationTest(useCount) |
| 75 | { |
| 76 | int uses = 0; |
| 77 | const auto declarationUses = decl->uses(); |
| 78 | for (const auto& useRanges : declarationUses) { |
| 79 | uses += useRanges.size(); |
| 80 | } |
| 81 | |
| 82 | return compareValues(uses, value, QStringLiteral("Declaration's use count ")); |
| 83 | } |
| 84 | ///JSON type: string array |
| 85 | ///@returns whether the declaration's ranges match the given value |
| 86 | DeclarationTest(useRanges) |
nothing calls this directly
no test coverage detected