nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
68c3d88
)
tests: fix tests for model index
author
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 16 Oct 2017 23:44:13 +0000
(19:44 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 10 Nov 2017 17:29:12 +0000
(12:29 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/test_model_index.nit
patch
|
blob
|
history
diff --git
a/src/test_model_index.nit
b/src/test_model_index.nit
index
feb60a0
..
74e0b4c
100644
(file)
--- a/
src/test_model_index.nit
+++ b/
src/test_model_index.nit
@@
-65,8
+65,12
@@
toolcontext.run_global_phases(mmodules)
var mainmodule = toolcontext.make_main_module(mmodules)
# Build index
+var filters = new ModelFilter(
+ private_visibility,
+ accept_fictive = false,
+ accept_test = false)
+var view = new ModelView(model, mainmodule, filters)
var index = new ModelIndex
-var view = new ModelView(model, mainmodule)
for mentity in view.mentities do
if mentity isa MClassDef or mentity isa MPropDef then continue
index.index(mentity)