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 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, loggingLevels)
 
 TEST (RosConsole, changingLevel)
 
 TEST (RosConsole, changingLoggerLevel)
 
 TEST (RosConsole, longPrintfStyleOutput)
 
 TEST (RosConsole, throwingAppender)
 
 TEST (RosConsole, once)
 
 TEST (RosConsole, throttle)
 
 TEST (RosConsole, delayedThrottle)
 
 TEST (RosConsole, onceStream)
 
 TEST (RosConsole, throttleStream)
 
 TEST (RosConsole, delayedStreamThrottle)
 
 TEST (RosConsole, basicFilter)
 
 TEST (RosConsole, basicFilterStream)
 
 TEST (RosConsole, advancedFilter)
 
 TEST (RosConsole, advancedFilterStream)
 
 TEST (RosConsole, changeFilter)
 
 TEST (RosConsole, changeFilterStream)
 
 TEST (RosConsole, formatToBufferInitialZero)
 
 TEST (RosConsole, formatToBufferInitialLargerThanFormat)
 
 TEST (RosConsole, formatToString)
 
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 118 of file utest.cpp.

◆ DEFINE_FILTER_TESTS

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

Definition at line 254 of file utest.cpp.

◆ DEFINE_LEVEL_TESTS

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

Definition at line 298 of file utest.cpp.

◆ DEFINE_ONCE_TESTS

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

Definition at line 166 of file utest.cpp.

◆ DEFINE_THROTTLE_TESTS

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

Definition at line 210 of file utest.cpp.

Function Documentation

◆ delayedThrottleFunc()

void delayedThrottleFunc ( )

Definition at line 716 of file utest.cpp.

◆ delayedThrottleFunc2()

void delayedThrottleFunc2 ( )

Definition at line 721 of file utest.cpp.

◆ delayedThrottleStreamFunc()

void delayedThrottleStreamFunc ( )

Definition at line 804 of file utest.cpp.

◆ delayedThrottleStreamFunc2()

void delayedThrottleStreamFunc2 ( )

Definition at line 809 of file utest.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1005 of file utest.cpp.

◆ onceFunc()

void onceFunc ( )

Definition at line 670 of file utest.cpp.

◆ onceStreamFunc()

void onceStreamFunc ( )

Definition at line 758 of file utest.cpp.

◆ TEST() [1/20]

TEST ( RosConsole  ,
loggingLevels   
)

Definition at line 352 of file utest.cpp.

◆ TEST() [2/20]

TEST ( RosConsole  ,
changingLevel   
)

Definition at line 573 of file utest.cpp.

◆ TEST() [3/20]

TEST ( RosConsole  ,
changingLoggerLevel   
)

Definition at line 593 of file utest.cpp.

◆ TEST() [4/20]

TEST ( RosConsole  ,
longPrintfStyleOutput   
)

Definition at line 627 of file utest.cpp.

◆ TEST() [5/20]

TEST ( RosConsole  ,
throwingAppender   
)

Definition at line 650 of file utest.cpp.

◆ TEST() [6/20]

TEST ( RosConsole  ,
once   
)

Definition at line 675 of file utest.cpp.

◆ TEST() [7/20]

TEST ( RosConsole  ,
throttle   
)

Definition at line 695 of file utest.cpp.

◆ TEST() [8/20]

TEST ( RosConsole  ,
delayedThrottle   
)

Definition at line 726 of file utest.cpp.

◆ TEST() [9/20]

TEST ( RosConsole  ,
onceStream   
)

Definition at line 763 of file utest.cpp.

◆ TEST() [10/20]

TEST ( RosConsole  ,
throttleStream   
)

Definition at line 783 of file utest.cpp.

◆ TEST() [11/20]

TEST ( RosConsole  ,
delayedStreamThrottle   
)

Definition at line 814 of file utest.cpp.

◆ TEST() [12/20]

TEST ( RosConsole  ,
basicFilter   
)

Definition at line 845 of file utest.cpp.

◆ TEST() [13/20]

TEST ( RosConsole  ,
basicFilterStream   
)

Definition at line 862 of file utest.cpp.

◆ TEST() [14/20]

TEST ( RosConsole  ,
advancedFilter   
)

Definition at line 898 of file utest.cpp.

◆ TEST() [15/20]

TEST ( RosConsole  ,
advancedFilterStream   
)

Definition at line 917 of file utest.cpp.

◆ TEST() [16/20]

TEST ( RosConsole  ,
changeFilter   
)

Definition at line 947 of file utest.cpp.

◆ TEST() [17/20]

TEST ( RosConsole  ,
changeFilterStream   
)

Definition at line 964 of file utest.cpp.

◆ TEST() [18/20]

TEST ( RosConsole  ,
formatToBufferInitialZero   
)

Definition at line 981 of file utest.cpp.

◆ TEST() [19/20]

TEST ( RosConsole  ,
formatToBufferInitialLargerThanFormat   
)

Definition at line 990 of file utest.cpp.

◆ TEST() [20/20]

TEST ( RosConsole  ,
formatToString   
)

Definition at line 999 of file utest.cpp.

◆ throttleFunc()

void throttleFunc ( )

Definition at line 690 of file utest.cpp.

◆ throttleStreamFunc()

void throttleStreamFunc ( )

Definition at line 778 of file utest.cpp.

Variable Documentation

◆ g_filter

BasicFilter g_filter(true)


rosconsole
Author(s): Josh Faust
autogenerated on Mon Feb 28 2022 23:30:41