def test_impl_no_sub(self): """Make sure a class with base classes but not subclasses doesn't get a 'Find subclasses' menu option.""" menu_item_not_on(self.source_page('DerivedDerivedTypes.h'), 'DerivedDerivedClass', 'Find subclasses')
def test_override_no_overrides(self): """Make sure virtual functions that aren't overridden don't get a 'Find overrides' menu option.""" menu_item_not_on(self.source_page('DerivedDerivedTypes.h'), 'virtualFunc', 'Find overrides')
def test_impl_no_base(self): """Make sure a class with subclasses but not base classes doesn't get a 'Find base classes' menu option.""" menu_item_not_on(self.source_page('BaseTypes.h'), 'BaseClass', 'Find base classes')
def test_external_definition(self): """Things included from outside the source tree shouldn't generate links to their (missing) definitions.""" menu_item_not_on(self.source_page('main.cpp'), 'VERY_EXTERNAL', 'Jump to definition')
def test_override_no_overridden(self): """Make sure virtual functions that don't override don't get a 'Find overridden' menu option.""" menu_item_not_on(self.source_page('BaseTypes.h'), 'virtualFunc', 'Find overridden')
def test_function_def_no_jump(self): """Make sure a function definition doesn't get a 'Jump to definition' entry.""" menu_item_not_on(self.source_page('extern.c'), 'another_file', 'Jump to definition')