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({}))
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({}))
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))
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))
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))