rvm  1.11
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
test-strfmt.cc File Reference
#include "config.h"
#include <iostream>
#include <string>
#include <cassert>
#include "asserts.h"
#include "types.h"
#include "error.h"
#include "estring.h"
#include "strfmt.h"
Include dependency graph for test-strfmt.cc:

Go to the source code of this file.

Macros

#define ERR_OUT(e)
 
#define TEST(code)
 

Functions

void test1 (void)
 
void test2 (void)
 
void test3 (void)
 
void test4 (void)
 
int main (int argc, char const *argv[])
 

Macro Definition Documentation

#define ERR_OUT (   e)

Definition at line 14 of file test-strfmt.cc.

Referenced by test1(), test2(), and test3().

#define TEST (   code)
Value:
try { \
code; \
} \
catch(error e) { \
ERR_OUT(e); \
thrown = true; \
} \
catch(...) { \
assert(0); \
}
#define ERR_OUT(e)
Definition: test-strfmt.cc:14
An error class.
Definition: error.h:72

Definition at line 16 of file test-strfmt.cc.

Referenced by test1(), test2(), and test3().

Function Documentation

int main ( int  argc,
char const *  argv[] 
)

Definition at line 287 of file test-strfmt.cc.

References err_unknown, test1(), test2(), test3(), and test4().

Here is the call graph for this function:

void test1 ( void  )

Definition at line 29 of file test-strfmt.cc.

References ERR_OUT, size_to_string(), and TEST.

Referenced by main().

Here is the call graph for this function:

void test2 ( void  )

Definition at line 99 of file test-strfmt.cc.

References ERR_OUT, num_to_string(), and TEST.

Referenced by main().

Here is the call graph for this function:

void test3 ( void  )

Definition at line 189 of file test-strfmt.cc.

References ERR_OUT, TEST, and throughput_to_string().

Referenced by main().

Here is the call graph for this function:

void test4 ( void  )

Definition at line 259 of file test-strfmt.cc.

References percent_string().

Referenced by main().

Here is the call graph for this function: