示例#1
0
 def test_hierarchies(self):
     """Verify the class and file hierarchies."""
     # verify the file hierarchy and file declaration relationships
     file_hierarchy_dict = {
         directory("include"): {
             file("c_maths.h"): {
                 function("int", "cm_add"): parameters("int", "int"),
                 function("int", "cm_sub"): parameters("int", "int")
             }
         }
     }
     compare_file_hierarchy(self, file_hierarchy(file_hierarchy_dict))
     compare_class_hierarchy(self, class_hierarchy({}))
示例#2
0
 def test_hierarchies(self):
     """Verify the class and file hierarchies."""
     # verify the file hierarchy and file declaration relationships
     file_hierarchy_dict = {
         directory("include"): {
             file("main.h"): {
                 function("int", "add"): signature("int a", "int b"),
                 function("int", "sub"): signature("int a", "int b")
             }
         }
     }
     compare_file_hierarchy(self, file_hierarchy(file_hierarchy_dict))
     compare_class_hierarchy(self, class_hierarchy({}))
示例#3
0
    def test_hierarchies_stripped(self):
        """
        Verify the class and file hierarchies with ``doxygenStripFromPath=../include``.

        .. todo:: this test is not supported yet
        """
        return  # TODO: Exhale should remove the include/ directory
        # dirty hack to pop off the first include/ directory without needing to know
        # the actual object that is the first and only key
        for key in self.file_hierarchy_dict:
            no_include = self.file_hierarchy_dict[key]
            break
        compare_file_hierarchy(self, file_hierarchy(no_include))
        compare_class_hierarchy(self, class_hierarchy(self.class_hierarchy_dict))
示例#4
0
 def test_hierarchies(self):
     """Verify the class and file hierarchies."""
     compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
     compare_class_hierarchy(self,
                             class_hierarchy(self.class_hierarchy_dict))
示例#5
0
 def test_hierarchies(self):
     """Verify the class and file hierarchies."""
     compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
     compare_class_hierarchy(self, class_hierarchy(self.class_hierarchy_dict))