Junit4Projects: output sum of int;
found := false;
visit(input, visitor {
# only look at the latest snapshot
before n: CodeRepository -> {
snapshot := getsnapshot(n);
foreach (i: int; def(snapshot[i]) && !found)
visit(snapshot[i]);
stop;
}
before _ -> if (found) stop;
before n: Modifier ->
if (n.kind == ModifierKind.ANNOTATION && n.annotation_name == "Test")
found = true;
});
if (found)
Junit4Projects << 1;
Hi Mohammad,Boa can definitely help you with these queries! I have actually performed one of them (looking for @Test in JUnit 4) myself for a previous presentation. Here is that query, slightly modified to answer your more specific question of 'how many projects' use JUnit 4.
Junit4Projects: output sum of int;
found := false;
visit(input, visitor {
# only look at the latest snapshot
before n: CodeRepository -> {
snapshot := getsnapshot(n);
foreach (i: int; def(snapshot[i]) && !found)
visit(snapshot[i]);
stop;
}
before _ -> if (found) stop;
before n: Modifier ->
if (n.kind == ModifierKind.ANNOTATION && n.annotation_name == "Test")
found = true;
});
if (found)
Junit4Projects << 1;Hope that helps!
- Robert
On Monday, August 4, 2014 6:30:09 PM UTC-4, Mohammad Ghafari wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Boa Language and Infrastructure User Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boa-user/bxH8lDldL10/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boa-user+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.