Macros | Functions
string_test.cc File Reference
#include "src/core/lib/gpr/string.h"
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "test/core/util/test_config.h"
Include dependency graph for string_test.cc:

Go to the source code of this file.

Macros

#define LOG_TEST_NAME(x)   gpr_log(GPR_INFO, "%s", x)
 

Functions

static void expect_dump (const char *buf, size_t len, uint32_t flags, const char *result)
 
int main (int argc, char **argv)
 
static void test_asprintf (void)
 
static void test_dump (void)
 
static void test_int64toa ()
 
static void test_leftpad ()
 
static void test_ltoa ()
 
static void test_memrchr (void)
 
static void test_parse_bool_value (void)
 
static void test_parse_uint32 (void)
 
static void test_pu32_fail (const char *s)
 
static void test_pu32_succeed (const char *s, uint32_t want)
 
static void test_strdup (void)
 
static void test_stricmp (void)
 
static void test_strjoin (void)
 
static void test_strjoin_sep (void)
 

Macro Definition Documentation

◆ LOG_TEST_NAME

#define LOG_TEST_NAME (   x)    gpr_log(GPR_INFO, "%s", x)

Definition at line 32 of file string_test.cc.

Function Documentation

◆ expect_dump()

static void expect_dump ( const char *  buf,
size_t  len,
uint32_t  flags,
const char *  result 
)
static

Definition at line 47 of file string_test.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 298 of file string_test.cc.

◆ test_asprintf()

static void test_asprintf ( void  )
static

Definition at line 109 of file string_test.cc.

◆ test_dump()

static void test_dump ( void  )
static

Definition at line 54 of file string_test.cc.

◆ test_int64toa()

static void test_int64toa ( )
static

Definition at line 206 of file string_test.cc.

◆ test_leftpad()

static void test_leftpad ( )
static

Definition at line 228 of file string_test.cc.

◆ test_ltoa()

static void test_ltoa ( )
static

Definition at line 181 of file string_test.cc.

◆ test_memrchr()

static void test_memrchr ( void  )
static

Definition at line 271 of file string_test.cc.

◆ test_parse_bool_value()

static void test_parse_bool_value ( void  )
static

Definition at line 282 of file string_test.cc.

◆ test_parse_uint32()

static void test_parse_uint32 ( void  )
static

Definition at line 75 of file string_test.cc.

◆ test_pu32_fail()

static void test_pu32_fail ( const char *  s)
static

Definition at line 64 of file string_test.cc.

◆ test_pu32_succeed()

static void test_pu32_succeed ( const char *  s,
uint32_t  want 
)
static

Definition at line 69 of file string_test.cc.

◆ test_strdup()

static void test_strdup ( void  )
static

Definition at line 34 of file string_test.cc.

◆ test_stricmp()

static void test_stricmp ( void  )
static

Definition at line 262 of file string_test.cc.

◆ test_strjoin()

static void test_strjoin ( void  )
static

Definition at line 134 of file string_test.cc.

◆ test_strjoin_sep()

static void test_strjoin_sep ( void  )
static

Definition at line 154 of file string_test.cc.



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