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 27 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 28 of file TestSupport.cxx.

◆ ~ForbidDiagnostics()

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

Definition at line 33 of file TestSupport.cxx.

Member Function Documentation

◆ handler()

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 39 of file TestSupport.cxx.

Member Data Documentation

◆ sOldErrorHandler

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

Definition at line 99 of file TestSupport.cxx.


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