src/doc/api: add links to renderer code
[nit.git] / src / doc / doc_phases / doc_test.nit
index ddb5eb7..46ea9d1 100644 (file)
@@ -23,7 +23,7 @@ import counter
 redef class ToolContext
 
        # File pattern used to link documentation to source code.
-       var opt_test = new OptionBool("print test data", "--test")
+       var opt_test = new OptionBool("Print test data (metrics and structure)", "--test")
 
        redef init do
                super
@@ -50,10 +50,10 @@ class DocTestPhase
                page_counter.print_elements(100)
                # Model metrics
                var model_counter = new Counter[String]
-               for mentity in doc.mentities do
+               for mentity in doc.model.collect_mentities(doc.filter) do
                        model_counter.inc mentity.class_name
                end
-               print "Found {doc.mentities.length} mentities"
+               print "Found {doc.model.collect_mentities(doc.filter).length} mentities"
                model_counter.print_elements(100)
        end
 end