nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5565d6c
)
model: tag groups as tests
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 29 Sep 2017 21:47:59 +0000
(17:47 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Tue, 7 Nov 2017 17:07:30 +0000
(12:07 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/model/model.nit
patch
|
blob
|
history
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
dc9b978
..
3ceb9f3
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-159,6
+159,14
@@
class ConcernsTree
super OrderedTree[MConcern]
end
+redef class MGroup
+ redef var is_test is lazy do
+ var parent = self.parent
+ if parent != null and parent.is_test then return true
+ return name == "tests"
+ end
+end
+
redef class MModule
# All the classes introduced in the module
var intro_mclasses = new Array[MClass]