Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
hooks.h File Reference

Report hooks. More...

#include "internal/hooks.h"

Go to the source code of this file.

Macros

#define ReportHook(Kind)   CR_REPORT_HOOK_IMPL(Kind)
 

Typedefs

typedef void(* f_report_hook) (void *)
 

Enumerations

enum  e_report_status {
  PRE_ALL , PRE_SUITE , PRE_INIT , PRE_TEST ,
  ASSERT , THEORY_FAIL , TEST_CRASH , POST_TEST ,
  POST_FINI , POST_SUITE , POST_ALL
}
 

Detailed Description

Report hooks.

Definition in file hooks.h.

Macro Definition Documentation

◆ ReportHook

#define ReportHook ( Kind)    CR_REPORT_HOOK_IMPL(Kind)

ReportHook(Kind)(Type *param) { Function Body }

Defines a report hook for the phase defined by Kind.

The type of the parameter depends on the phase:

Parameters
KindThe report phase to hook the function onto.

Definition at line 70 of file hooks.h.

Typedef Documentation

◆ f_report_hook

typedef void(* f_report_hook) (void *)

Definition at line 50 of file hooks.h.

Enumeration Type Documentation

◆ e_report_status

This enum lists all the phases of the runner lifecycle.

Enumerator
PRE_ALL 
PRE_SUITE 
PRE_INIT 
PRE_TEST 
ASSERT 
THEORY_FAIL 
TEST_CRASH 
POST_TEST 
POST_FINI 
POST_SUITE 
POST_ALL 

Definition at line 36 of file hooks.h.

36 {
37 PRE_ALL,
41 ASSERT,
e_report_status
Definition hooks.h:36
@ POST_TEST
Definition hooks.h:44
@ PRE_INIT
Definition hooks.h:39
@ THEORY_FAIL
Definition hooks.h:42
@ TEST_CRASH
Definition hooks.h:43
@ PRE_TEST
Definition hooks.h:40
@ ASSERT
Definition hooks.h:41
@ POST_ALL
Definition hooks.h:47
@ PRE_SUITE
Definition hooks.h:38
@ POST_SUITE
Definition hooks.h:46
@ POST_FINI
Definition hooks.h:45
@ PRE_ALL
Definition hooks.h:37