Classes | Macros | Functions | Variables
utest.cpp File Reference
#include "ros/console.h"
#include "log4cxx/appenderskeleton.h"
#include "log4cxx/spi/loggingevent.h"
#include <vector>
#include <stdexcept>
#include <gtest/gtest.h>
#include <boost/shared_array.hpp>
#include <boost/regex.hpp>
Include dependency graph for utest.cpp:

Go to the source code of this file.

Classes

struct  AdvancedFilter
 
struct  BasicFilter
 
struct  ChangeFilter
 
struct  TestAppender::Info
 
class  TestAppender
 
class  TestAppenderWithThrow
 

Macros

#define DEFINE_COND_TESTS(name, macro_base, level, log4cxx_level)
 
#define DEFINE_FILTER_TESTS(name, macro_base, level, log4cxx_level)
 
#define DEFINE_LEVEL_TESTS(name, macro_base, level, log4cxx_level)
 
#define DEFINE_ONCE_TESTS(name, macro_base, level, log4cxx_level)
 
#define DEFINE_THROTTLE_TESTS(name, macro_base, level, log4cxx_level)
 

Functions

void delayedThrottleFunc ()
 
void delayedThrottleFunc2 ()
 
void delayedThrottleStreamFunc ()
 
void delayedThrottleStreamFunc2 ()
 
int main (int argc, char **argv)
 
void onceFunc ()
 
void onceStreamFunc ()
 
 TEST (RosConsole, advancedFilter)
 
 TEST (RosConsole, advancedFilterStream)
 
 TEST (RosConsole, basicFilter)
 
 TEST (RosConsole, basicFilterStream)
 
 TEST (RosConsole, changeFilter)
 
 TEST (RosConsole, changeFilterStream)
 
 TEST (RosConsole, changingLevel)
 
 TEST (RosConsole, changingLoggerLevel)
 
 TEST (RosConsole, delayedStreamThrottle)
 
 TEST (RosConsole, delayedThrottle)
 
 TEST (RosConsole, formatter)
 
 TEST (RosConsole, formatToBufferInitialLargerThanFormat)
 
 TEST (RosConsole, formatToBufferInitialZero)
 
 TEST (RosConsole, formatToString)
 
 TEST (RosConsole, loggingLevels)
 
 TEST (RosConsole, longPrintfStyleOutput)
 
 TEST (RosConsole, once)
 
 TEST (RosConsole, onceStream)
 
 TEST (RosConsole, throttle)
 
 TEST (RosConsole, throttleStream)
 
 TEST (RosConsole, throwingAppender)
 
void throttleFunc ()
 
void throttleStreamFunc ()
 

Variables

BasicFilter g_filter (true)
 

Macro Definition Documentation

◆ DEFINE_COND_TESTS

#define DEFINE_COND_TESTS (   name,
  macro_base,
  level,
  log4cxx_level 
)

Definition at line 119 of file utest.cpp.

◆ DEFINE_FILTER_TESTS

#define DEFINE_FILTER_TESTS (   name,
  macro_base,
  level,
  log4cxx_level 
)

Definition at line 255 of file utest.cpp.

◆ DEFINE_LEVEL_TESTS

#define DEFINE_LEVEL_TESTS (   name,
  macro_base,
  level,
  log4cxx_level 
)

Definition at line 299 of file utest.cpp.

◆ DEFINE_ONCE_TESTS

#define DEFINE_ONCE_TESTS (   name,
  macro_base,
  level,
  log4cxx_level 
)

Definition at line 167 of file utest.cpp.

◆ DEFINE_THROTTLE_TESTS

#define DEFINE_THROTTLE_TESTS (   name,
  macro_base,
  level,
  log4cxx_level 
)

Definition at line 211 of file utest.cpp.

Function Documentation

◆ delayedThrottleFunc()

void delayedThrottleFunc ( )

Definition at line 717 of file utest.cpp.

◆ delayedThrottleFunc2()

void delayedThrottleFunc2 ( )

Definition at line 722 of file utest.cpp.

◆ delayedThrottleStreamFunc()

void delayedThrottleStreamFunc ( )

Definition at line 805 of file utest.cpp.

◆ delayedThrottleStreamFunc2()

void delayedThrottleStreamFunc2 ( )

Definition at line 810 of file utest.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1078 of file utest.cpp.

◆ onceFunc()

void onceFunc ( )

Definition at line 671 of file utest.cpp.

◆ onceStreamFunc()

void onceStreamFunc ( )

Definition at line 759 of file utest.cpp.

◆ TEST() [1/21]

TEST ( RosConsole  ,
advancedFilter   
)

Definition at line 899 of file utest.cpp.

◆ TEST() [2/21]

TEST ( RosConsole  ,
advancedFilterStream   
)

Definition at line 918 of file utest.cpp.

◆ TEST() [3/21]

TEST ( RosConsole  ,
basicFilter   
)

Definition at line 846 of file utest.cpp.

◆ TEST() [4/21]

TEST ( RosConsole  ,
basicFilterStream   
)

Definition at line 863 of file utest.cpp.

◆ TEST() [5/21]

TEST ( RosConsole  ,
changeFilter   
)

Definition at line 948 of file utest.cpp.

◆ TEST() [6/21]

TEST ( RosConsole  ,
changeFilterStream   
)

Definition at line 965 of file utest.cpp.

◆ TEST() [7/21]

TEST ( RosConsole  ,
changingLevel   
)

Definition at line 574 of file utest.cpp.

◆ TEST() [8/21]

TEST ( RosConsole  ,
changingLoggerLevel   
)

Definition at line 594 of file utest.cpp.

◆ TEST() [9/21]

TEST ( RosConsole  ,
delayedStreamThrottle   
)

Definition at line 815 of file utest.cpp.

◆ TEST() [10/21]

TEST ( RosConsole  ,
delayedThrottle   
)

Definition at line 727 of file utest.cpp.

◆ TEST() [11/21]

TEST ( RosConsole  ,
formatter   
)

Definition at line 1006 of file utest.cpp.

◆ TEST() [12/21]

TEST ( RosConsole  ,
formatToBufferInitialLargerThanFormat   
)

Definition at line 991 of file utest.cpp.

◆ TEST() [13/21]

TEST ( RosConsole  ,
formatToBufferInitialZero   
)

Definition at line 982 of file utest.cpp.

◆ TEST() [14/21]

TEST ( RosConsole  ,
formatToString   
)

Definition at line 1000 of file utest.cpp.

◆ TEST() [15/21]

TEST ( RosConsole  ,
loggingLevels   
)

Definition at line 353 of file utest.cpp.

◆ TEST() [16/21]

TEST ( RosConsole  ,
longPrintfStyleOutput   
)

Definition at line 628 of file utest.cpp.

◆ TEST() [17/21]

TEST ( RosConsole  ,
once   
)

Definition at line 676 of file utest.cpp.

◆ TEST() [18/21]

TEST ( RosConsole  ,
onceStream   
)

Definition at line 764 of file utest.cpp.

◆ TEST() [19/21]

TEST ( RosConsole  ,
throttle   
)

Definition at line 696 of file utest.cpp.

◆ TEST() [20/21]

TEST ( RosConsole  ,
throttleStream   
)

Definition at line 784 of file utest.cpp.

◆ TEST() [21/21]

TEST ( RosConsole  ,
throwingAppender   
)

Definition at line 651 of file utest.cpp.

◆ throttleFunc()

void throttleFunc ( )

Definition at line 691 of file utest.cpp.

◆ throttleStreamFunc()

void throttleStreamFunc ( )

Definition at line 779 of file utest.cpp.

Variable Documentation

◆ g_filter

BasicFilter g_filter(true)


rosconsole
Author(s): Josh Faust
autogenerated on Wed Mar 2 2022 00:53:52