Macros | Functions
cmdline_test.cc File Reference
#include "test/core/util/cmdline.h"
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/useful.h"
#include "test/core/util/test_config.h"
Include dependency graph for cmdline_test.cc:

Go to the source code of this file.

Macros

#define LOG_TEST()   gpr_log(GPR_INFO, "test at %s:%d", __FILE__, __LINE__)
 

Functions

static void extra_arg_cb (void *user_data, const char *arg)
 
int main (int argc, char **argv)
 
static void test_2dash_eq_int (void)
 
static void test_2dash_eq_string (void)
 
static void test_2dash_int (void)
 
static void test_2dash_string (void)
 
static void test_badargs1 (void)
 
static void test_badargs2 (void)
 
static void test_badargs3 (void)
 
static void test_badargs4 (void)
 
static void test_eq_int (void)
 
static void test_eq_string (void)
 
static void test_extra (void)
 
static void test_extra_dashdash (void)
 
static void test_flag_no (void)
 
static void test_flag_on (void)
 
static void test_flag_val_0 (void)
 
static void test_flag_val_1 (void)
 
static void test_flag_val_false (void)
 
static void test_flag_val_true (void)
 
static void test_help (void)
 
static void test_many (void)
 
static void test_simple_int (void)
 
static void test_simple_string (void)
 
static void test_usage (void)
 

Macro Definition Documentation

◆ LOG_TEST

#define LOG_TEST ( )    gpr_log(GPR_INFO, "test at %s:%d", __FILE__, __LINE__)

Definition at line 29 of file cmdline_test.cc.

Function Documentation

◆ extra_arg_cb()

static void extra_arg_cb ( void *  user_data,
const char *  arg 
)
static

Definition at line 269 of file cmdline_test.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 468 of file cmdline_test.cc.

◆ test_2dash_eq_int()

static void test_2dash_eq_int ( void  )
static

Definition at line 78 of file cmdline_test.cc.

◆ test_2dash_eq_string()

static void test_2dash_eq_string ( void  )
static

Definition at line 140 of file cmdline_test.cc.

◆ test_2dash_int()

static void test_2dash_int ( void  )
static

Definition at line 62 of file cmdline_test.cc.

◆ test_2dash_string()

static void test_2dash_string ( void  )
static

Definition at line 124 of file cmdline_test.cc.

◆ test_badargs1()

static void test_badargs1 ( void  )
static

Definition at line 363 of file cmdline_test.cc.

◆ test_badargs2()

static void test_badargs2 ( void  )
static

Definition at line 389 of file cmdline_test.cc.

◆ test_badargs3()

static void test_badargs3 ( void  )
static

Definition at line 416 of file cmdline_test.cc.

◆ test_badargs4()

static void test_badargs4 ( void  )
static

Definition at line 442 of file cmdline_test.cc.

◆ test_eq_int()

static void test_eq_int ( void  )
static

Definition at line 47 of file cmdline_test.cc.

◆ test_eq_string()

static void test_eq_string ( void  )
static

Definition at line 109 of file cmdline_test.cc.

◆ test_extra()

static void test_extra ( void  )
static

Definition at line 277 of file cmdline_test.cc.

◆ test_extra_dashdash()

static void test_extra_dashdash ( void  )
static

Definition at line 293 of file cmdline_test.cc.

◆ test_flag_no()

static void test_flag_no ( void  )
static

Definition at line 170 of file cmdline_test.cc.

◆ test_flag_on()

static void test_flag_on ( void  )
static

Definition at line 155 of file cmdline_test.cc.

◆ test_flag_val_0()

static void test_flag_val_0 ( void  )
static

Definition at line 200 of file cmdline_test.cc.

◆ test_flag_val_1()

static void test_flag_val_1 ( void  )
static

Definition at line 185 of file cmdline_test.cc.

◆ test_flag_val_false()

static void test_flag_val_false ( void  )
static

Definition at line 230 of file cmdline_test.cc.

◆ test_flag_val_true()

static void test_flag_val_true ( void  )
static

Definition at line 215 of file cmdline_test.cc.

◆ test_help()

static void test_help ( void  )
static

Definition at line 339 of file cmdline_test.cc.

◆ test_many()

static void test_many ( void  )
static

Definition at line 246 of file cmdline_test.cc.

◆ test_simple_int()

static void test_simple_int ( void  )
static

Definition at line 31 of file cmdline_test.cc.

◆ test_simple_string()

static void test_simple_string ( void  )
static

Definition at line 93 of file cmdline_test.cc.

◆ test_usage()

static void test_usage ( void  )
static

Definition at line 310 of file cmdline_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:07