Macros | Functions
skip_with_error_test.cc File Reference
#include <cassert>
#include <vector>
#include "../src/check.h"
#include "benchmark/benchmark.h"
Include dependency graph for skip_with_error_test.cc:

Go to the source code of this file.

Macros

#define ADD_CASES(...)   int CONCAT(dummy, __LINE__) = AddCases(__VA_ARGS__)
 
#define CONCAT(x, y)   CONCAT2(x, y)
 
#define CONCAT2(x, y)   x##y
 

Functions

 ADD_CASES ("BM_error_after_running", {{"/threads:1", true, "error message"}, {"/threads:2", true, "error message"}, {"/threads:4", true, "error message"}, {"/threads:8", true, "error message"}})
 
 ADD_CASES ("BM_error_before_running", {{"", true, "error message"}})
 
 ADD_CASES ("BM_error_during_running", {{"/1/threads:1", true, "error message"}, {"/1/threads:2", true, "error message"}, {"/1/threads:4", true, "error message"}, {"/1/threads:8", true, "error message"}, {"/2/threads:1", false, ""}, {"/2/threads:2", false, ""}, {"/2/threads:4", false, ""}, {"/2/threads:8", false, ""}})
 
 ADD_CASES ("BM_error_while_paused", {{"/1/threads:1", true, "error message"}, {"/1/threads:2", true, "error message"}, {"/1/threads:4", true, "error message"}, {"/1/threads:8", true, "error message"}, {"/2/threads:1", false, ""}, {"/2/threads:2", false, ""}, {"/2/threads:4", false, ""}, {"/2/threads:8", false, ""}})
 
 BENCHMARK (BM_error_after_running) -> ThreadRange(1, 8)
 
 BENCHMARK (BM_error_before_running)
 
 BENCHMARK (BM_error_during_running) -> Arg(1) ->Arg(2) ->ThreadRange(1, 8)
 
 BENCHMARK (BM_error_while_paused) -> Arg(1) ->Arg(2) ->ThreadRange(1, 8)
 
void BM_error_after_running (benchmark::State &state)
 
void BM_error_before_running (benchmark::State &state)
 
void BM_error_during_running (benchmark::State &state)
 
void BM_error_while_paused (benchmark::State &state)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ ADD_CASES

#define ADD_CASES (   ...)    int CONCAT(dummy, __LINE__) = AddCases(__VA_ARGS__)

Definition at line 60 of file skip_with_error_test.cc.

◆ CONCAT

#define CONCAT (   x,
  y 
)    CONCAT2(x, y)

Definition at line 58 of file skip_with_error_test.cc.

◆ CONCAT2

#define CONCAT2 (   x,
  y 
)    x##y

Definition at line 59 of file skip_with_error_test.cc.

Function Documentation

◆ ADD_CASES() [1/4]

ADD_CASES ( "BM_error_after_running"  ,
{{"/threads:1", true, "error message"}, {"/threads:2", true, "error message"}, {"/threads:4", true, "error message"}, {"/threads:8", true, "error message"}}   
)

◆ ADD_CASES() [2/4]

ADD_CASES ( "BM_error_before_running"  ,
{{"", true, "error message"}}   
)

◆ ADD_CASES() [3/4]

ADD_CASES ( "BM_error_during_running"  ,
{{"/1/threads:1", true, "error message"}, {"/1/threads:2", true, "error message"}, {"/1/threads:4", true, "error message"}, {"/1/threads:8", true, "error message"}, {"/2/threads:1", false, ""}, {"/2/threads:2", false, ""}, {"/2/threads:4", false, ""}, {"/2/threads:8", false, ""}}   
)

◆ ADD_CASES() [4/4]

ADD_CASES ( "BM_error_while_paused"  ,
{{"/1/threads:1", true, "error message"}, {"/1/threads:2", true, "error message"}, {"/1/threads:4", true, "error message"}, {"/1/threads:8", true, "error message"}, {"/2/threads:1", false, ""}, {"/2/threads:2", false, ""}, {"/2/threads:4", false, ""}, {"/2/threads:8", false, ""}}   
)

◆ BENCHMARK() [1/4]

BENCHMARK ( BM_error_after_running  ) -> ThreadRange(1, 8)

◆ BENCHMARK() [2/4]

BENCHMARK ( BM_error_before_running  )

◆ BENCHMARK() [3/4]

BENCHMARK ( BM_error_during_running  ) -> Arg(1) ->Arg(2) ->ThreadRange(1, 8)

◆ BENCHMARK() [4/4]

BENCHMARK ( BM_error_while_paused  ) -> Arg(1) ->Arg(2) ->ThreadRange(1, 8)

◆ BM_error_after_running()

void BM_error_after_running ( benchmark::State state)

Definition at line 96 of file skip_with_error_test.cc.

◆ BM_error_before_running()

void BM_error_before_running ( benchmark::State state)

Definition at line 64 of file skip_with_error_test.cc.

◆ BM_error_during_running()

void BM_error_during_running ( benchmark::State state)

Definition at line 73 of file skip_with_error_test.cc.

◆ BM_error_while_paused()

void BM_error_while_paused ( benchmark::State state)

Definition at line 109 of file skip_with_error_test.cc.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 133 of file skip_with_error_test.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04