def test_file_hierarchy(self): """ Verify the file hierarchy. The class hierarchy is not validated for this test project simply because doing so is rather pointless, and the added complexity to do so given the conditionally created structure is not worth the effort. """ compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
def test_hierarchies(self): """ Verify the class and file hierarchies. .. todo:: Class hierarchy not tested here, need to revisit that part of the testing framework **as well as** stop emitting a "Class Hierarchy" on the root api page when it is empty. """ compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
def test_hierarchies(self): """ Verify the class and file hierarchies. .. todo:: Class hierarchy not tested here, need to revisit that part of the testing framework **as well as** stop emitting a "Class Hierarchy" on the root api page when it is empty. """ compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
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): """ Validate the class and file hierarchies. **Not tested on Windows**, maybe I'll care to fix it one day. `But it is not this day`__! __ https://youtu.be/EXGUNvIFTQw .. todo:: Too much shared code in hierarchy comparisons, the class hierarchy for this project should be **empty**. Need to enable asserting this fact (same for the ``cpp_nesting`` project). """ if platform.system() != "Windows": compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
def test_hierarchies(self): """ Validate the class and file hierarchies. **Not tested on Windows**, maybe I'll care to fix it one day. `But it is not this day`__! __ https://youtu.be/EXGUNvIFTQw .. todo:: Too much shared code in hierarchy comparisons, the class hierarchy for this project should be **empty**. Need to enable asserting this fact (same for the ``cpp_nesting`` project). """ if platform.system() != "Windows": compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
def test_file_hierarchy(self): """Verify the file hierarchy.""" compare_file_hierarchy(self, file_hierarchy(self.file_hierarchy_dict))
def test_file_hierarchy(self): """Verify the file hierarchy.""" compare_file_hierarchy(self, file_hierarchy(self.file_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))