neo_doxygen: Do not guess the namespace of the classes.
[nit.git] / contrib / neo_doxygen / src / tests / neo_doxygen_file_compound.nit
index ec80446..9a5c59c 100644 (file)
@@ -20,7 +20,10 @@ var file = new FileCompound(graph)
 var file_2 = new FileCompound(graph)
 var bar_class = new ClassCompound(graph)
 var baz_class = new ClassCompound(graph)
+var a_ns = new Namespace(graph)
+var b_ns = new Namespace(graph)
 var c_ns = new Namespace(graph)
+var d_ns = new Namespace(graph)
 var buffer = new RopeBuffer
 
 file.full_name = "Bar.java"
@@ -44,10 +47,31 @@ baz_class.model_id = "classbaz"
 baz_class.full_name = "Baz"
 baz_class.put_in_graph
 
+a_ns.full_name = "a"
+a_ns.declare_namespace("", "a::b")
+a_ns.put_in_graph
+
+b_ns.full_name = "a::b"
+b_ns.declare_class("classa_b_bar", "")
+b_ns.put_in_graph
+
 c_ns.model_id = "namespacec"
 c_ns.full_name = "c"
 c_ns.put_in_graph
 
+d_ns.model_id = "namespaced"
+d_ns.full_name = "d"
+d_ns.put_in_graph
+
+print "---===WITHOUT GLOBALS===---"
+graph.put_edges
+graph.debug buffer
+print buffer
+
+print "---===WITH GLOBALS===---"
+#buffer.clear  # Buggy.
+buffer = new RopeBuffer
+graph.add_global_modules
 graph.put_edges
 graph.debug buffer
 print buffer