Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::TestSupport::ForbidDiagnostics Struct Reference

Error handler for gtests that generates failures for every received diagnostic > kInfo when this file is linked to.

Definition at line 25 of file TestSupport.cxx.

Public Member Functions

 ForbidDiagnostics ()
 
 ~ForbidDiagnostics ()
 

Static Public Member Functions

static void handler (int level, bool abort, const char *location, const char *msg)
 Diagnostic handler that's installed for all google tests.
 

Public Attributes

ErrorHandlerFunc_t const sOldErrorHandler
 

Constructor & Destructor Documentation

◆ ForbidDiagnostics()

ROOT::TestSupport::ForbidDiagnostics::ForbidDiagnostics ( )
inline

Definition at line 26 of file TestSupport.cxx.

◆ ~ForbidDiagnostics()

ROOT::TestSupport::ForbidDiagnostics::~ForbidDiagnostics ( )
inline

Definition at line 31 of file TestSupport.cxx.

Member Function Documentation

◆ handler()

static void ROOT::TestSupport::ForbidDiagnostics::handler ( int  level,
bool  abort,
const char *  location,
const char *  msg 
)
inlinestatic

Diagnostic handler that's installed for all google tests.

It will generate a test failure when a diagnostic message is issued.

Definition at line 37 of file TestSupport.cxx.

Member Data Documentation

◆ sOldErrorHandler

ErrorHandlerFunc_t const ROOT::TestSupport::ForbidDiagnostics::sOldErrorHandler

Definition at line 88 of file TestSupport.cxx.

Collaboration diagram for ROOT::TestSupport::ForbidDiagnostics:
[legend]

The documentation for this struct was generated from the following file: