tesseract v5.3.3.20231005
testing::Flags Struct Reference

Public Member Functions

 Flags ()
 

Static Public Member Functions

static Flags AlsoRunDisabledTests (bool also_run_disabled_tests)
 
static Flags BreakOnFailure (bool break_on_failure)
 
static Flags CatchExceptions (bool catch_exceptions)
 
static Flags DeathTestUseFork (bool death_test_use_fork)
 
static Flags FailFast (bool fail_fast)
 
static Flags Filter (const char *filter)
 
static Flags ListTests (bool list_tests)
 
static Flags Output (const char *output)
 
static Flags Brief (bool brief)
 
static Flags PrintTime (bool print_time)
 
static Flags RandomSeed (int32_t random_seed)
 
static Flags Repeat (int32_t repeat)
 
static Flags Shuffle (bool shuffle)
 
static Flags StackTraceDepth (int32_t stack_trace_depth)
 
static Flags StreamResultTo (const char *stream_result_to)
 
static Flags ThrowOnFailure (bool throw_on_failure)
 

Public Attributes

bool also_run_disabled_tests
 
bool break_on_failure
 
bool catch_exceptions
 
bool death_test_use_fork
 
bool fail_fast
 
const char * filter
 
bool list_tests
 
const char * output
 
bool brief
 
bool print_time
 
int32_t random_seed
 
int32_t repeat
 
bool shuffle
 
int32_t stack_trace_depth
 
const char * stream_result_to
 
bool throw_on_failure
 

Detailed Description

Definition at line 5568 of file gtest_unittest.cc.

Constructor & Destructor Documentation

◆ Flags()

testing::Flags::Flags ( )
inline

Definition at line 5570 of file gtest_unittest.cc.

5571 : also_run_disabled_tests(false),
5572 break_on_failure(false),
5573 catch_exceptions(false),
5574 death_test_use_fork(false),
5575 fail_fast(false),
5576 filter(""),
5577 list_tests(false),
5578 output(""),
5579 brief(false),
5580 print_time(true),
5581 random_seed(0),
5582 repeat(1),
5583 shuffle(false),
5584 stack_trace_depth(kMaxStackTraceDepth),
5585 stream_result_to(""),
5586 throw_on_failure(false) {}
const char * output
const char * filter
const char * stream_result_to
int32_t stack_trace_depth

Member Function Documentation

◆ AlsoRunDisabledTests()

static Flags testing::Flags::AlsoRunDisabledTests ( bool  also_run_disabled_tests)
inlinestatic

Definition at line 5592 of file gtest_unittest.cc.

5592 {
5593 Flags flags;
5594 flags.also_run_disabled_tests = also_run_disabled_tests;
5595 return flags;
5596 }
Flags
Definition: scanutils.cpp:31

◆ BreakOnFailure()

static Flags testing::Flags::BreakOnFailure ( bool  break_on_failure)
inlinestatic

Definition at line 5600 of file gtest_unittest.cc.

5600 {
5601 Flags flags;
5602 flags.break_on_failure = break_on_failure;
5603 return flags;
5604 }

◆ Brief()

static Flags testing::Flags::Brief ( bool  brief)
inlinestatic

Definition at line 5656 of file gtest_unittest.cc.

5656 {
5657 Flags flags;
5658 flags.brief = brief;
5659 return flags;
5660 }

◆ CatchExceptions()

static Flags testing::Flags::CatchExceptions ( bool  catch_exceptions)
inlinestatic

Definition at line 5608 of file gtest_unittest.cc.

5608 {
5609 Flags flags;
5610 flags.catch_exceptions = catch_exceptions;
5611 return flags;
5612 }

◆ DeathTestUseFork()

static Flags testing::Flags::DeathTestUseFork ( bool  death_test_use_fork)
inlinestatic

Definition at line 5616 of file gtest_unittest.cc.

5616 {
5617 Flags flags;
5618 flags.death_test_use_fork = death_test_use_fork;
5619 return flags;
5620 }

◆ FailFast()

static Flags testing::Flags::FailFast ( bool  fail_fast)
inlinestatic

Definition at line 5624 of file gtest_unittest.cc.

5624 {
5625 Flags flags;
5626 flags.fail_fast = fail_fast;
5627 return flags;
5628 }

◆ Filter()

static Flags testing::Flags::Filter ( const char *  filter)
inlinestatic

Definition at line 5632 of file gtest_unittest.cc.

5632 {
5633 Flags flags;
5634 flags.filter = filter;
5635 return flags;
5636 }

◆ ListTests()

static Flags testing::Flags::ListTests ( bool  list_tests)
inlinestatic

Definition at line 5640 of file gtest_unittest.cc.

5640 {
5641 Flags flags;
5642 flags.list_tests = list_tests;
5643 return flags;
5644 }

◆ Output()

static Flags testing::Flags::Output ( const char *  output)
inlinestatic

Definition at line 5648 of file gtest_unittest.cc.

5648 {
5649 Flags flags;
5650 flags.output = output;
5651 return flags;
5652 }

◆ PrintTime()

static Flags testing::Flags::PrintTime ( bool  print_time)
inlinestatic

Definition at line 5664 of file gtest_unittest.cc.

5664 {
5665 Flags flags;
5666 flags.print_time = print_time;
5667 return flags;
5668 }

◆ RandomSeed()

static Flags testing::Flags::RandomSeed ( int32_t  random_seed)
inlinestatic

Definition at line 5672 of file gtest_unittest.cc.

5672 {
5673 Flags flags;
5674 flags.random_seed = random_seed;
5675 return flags;
5676 }

◆ Repeat()

static Flags testing::Flags::Repeat ( int32_t  repeat)
inlinestatic

Definition at line 5680 of file gtest_unittest.cc.

5680 {
5681 Flags flags;
5682 flags.repeat = repeat;
5683 return flags;
5684 }

◆ Shuffle()

static Flags testing::Flags::Shuffle ( bool  shuffle)
inlinestatic

Definition at line 5688 of file gtest_unittest.cc.

5688 {
5689 Flags flags;
5690 flags.shuffle = shuffle;
5691 return flags;
5692 }

◆ StackTraceDepth()

static Flags testing::Flags::StackTraceDepth ( int32_t  stack_trace_depth)
inlinestatic

Definition at line 5696 of file gtest_unittest.cc.

5696 {
5697 Flags flags;
5698 flags.stack_trace_depth = stack_trace_depth;
5699 return flags;
5700 }

◆ StreamResultTo()

static Flags testing::Flags::StreamResultTo ( const char *  stream_result_to)
inlinestatic

Definition at line 5704 of file gtest_unittest.cc.

5704 {
5705 Flags flags;
5706 flags.stream_result_to = stream_result_to;
5707 return flags;
5708 }

◆ ThrowOnFailure()

static Flags testing::Flags::ThrowOnFailure ( bool  throw_on_failure)
inlinestatic

Definition at line 5712 of file gtest_unittest.cc.

5712 {
5713 Flags flags;
5714 flags.throw_on_failure = throw_on_failure;
5715 return flags;
5716 }

Member Data Documentation

◆ also_run_disabled_tests

bool testing::Flags::also_run_disabled_tests

Definition at line 5719 of file gtest_unittest.cc.

◆ break_on_failure

bool testing::Flags::break_on_failure

Definition at line 5720 of file gtest_unittest.cc.

◆ brief

bool testing::Flags::brief

Definition at line 5727 of file gtest_unittest.cc.

◆ catch_exceptions

bool testing::Flags::catch_exceptions

Definition at line 5721 of file gtest_unittest.cc.

◆ death_test_use_fork

bool testing::Flags::death_test_use_fork

Definition at line 5722 of file gtest_unittest.cc.

◆ fail_fast

bool testing::Flags::fail_fast

Definition at line 5723 of file gtest_unittest.cc.

◆ filter

const char* testing::Flags::filter

Definition at line 5724 of file gtest_unittest.cc.

◆ list_tests

bool testing::Flags::list_tests

Definition at line 5725 of file gtest_unittest.cc.

◆ output

const char* testing::Flags::output

Definition at line 5726 of file gtest_unittest.cc.

◆ print_time

bool testing::Flags::print_time

Definition at line 5728 of file gtest_unittest.cc.

◆ random_seed

int32_t testing::Flags::random_seed

Definition at line 5729 of file gtest_unittest.cc.

◆ repeat

int32_t testing::Flags::repeat

Definition at line 5730 of file gtest_unittest.cc.

◆ shuffle

bool testing::Flags::shuffle

Definition at line 5731 of file gtest_unittest.cc.

◆ stack_trace_depth

int32_t testing::Flags::stack_trace_depth

Definition at line 5732 of file gtest_unittest.cc.

◆ stream_result_to

const char* testing::Flags::stream_result_to

Definition at line 5733 of file gtest_unittest.cc.

◆ throw_on_failure

bool testing::Flags::throw_on_failure

Definition at line 5734 of file gtest_unittest.cc.


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