GDB (xrefs)
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
command-def-selftests.c File Reference
#include "defs.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "gdbsupport/selftest.h"
#include <map>

Go to the source code of this file.

Namespaces

namespace  selftests
 
namespace  selftests::help_doc_tests
 
namespace  selftests::command_structure_tests
 

Functions

static void selftests::help_doc_tests::broken_doc_invariant (const char *prefix, const char *name, const char *msg)
 
static void selftests::help_doc_tests::check_doc (struct cmd_list_element *commandlist, const char *prefix)
 
static void selftests::help_doc_tests::help_doc_invariants_tests ()
 
static void selftests::command_structure_tests::traverse_command_structure (struct cmd_list_element **list, const char *prefix)
 
static void selftests::command_structure_tests::command_structure_invariants_tests ()
 
void _initialize_command_def_selftests ()
 

Variables

static unsigned int selftests::help_doc_tests::nr_failed_invariants
 
static unsigned int selftests::command_structure_tests::nr_duplicates = 0
 
static unsigned int selftests::command_structure_tests::nr_invalid_prefixcmd = 0
 
static std::map< cmd_list_element **, const char * > selftests::command_structure_tests::lists
 

Function Documentation

◆ _initialize_command_def_selftests()

void _initialize_command_def_selftests ( )