LLVM OpenMP 22.0.0git
TestCase Struct Reference

A pretty crude test case abstraction. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/openmp/tools/omptest/include/OmptTesterStandalone.h"

Public Member Functions

 TestCase (const std::string &name)
 TestCase (const std::string &name, const omptest::AssertState &expected)
virtual ~TestCase ()=default
Error exec ()
virtual void execImpl ()

Public Attributes

bool IsDisabled {false}
std::string Name
omptest::AssertState ExpectedState {omptest::AssertState::Pass}
omptest::AssertState ResultState {omptest::AssertState::Pass}
std::unique_ptr< omptest::OmptSequencedAsserterSequenceAsserter
std::unique_ptr< omptest::OmptEventAsserterSetAsserter
std::unique_ptr< omptest::OmptEventReporterEventReporter

Detailed Description

A pretty crude test case abstraction.

Definition at line 38 of file OmptTesterStandalone.h.

Constructor & Destructor Documentation

◆ TestCase() [1/2]

TestCase::TestCase ( const std::string & name)
inline

Definition at line 39 of file OmptTesterStandalone.h.

References IsDisabled, Name, and name.

◆ TestCase() [2/2]

TestCase::TestCase ( const std::string & name,
const omptest::AssertState & expected )
inline

Definition at line 41 of file OmptTesterStandalone.h.

References ExpectedState, IsDisabled, Name, and name.

◆ ~TestCase()

virtual TestCase::~TestCase ( )
virtualdefault

Member Function Documentation

◆ exec()

◆ execImpl()

virtual void TestCase::execImpl ( )
inlinevirtual

Definition at line 46 of file OmptTesterStandalone.h.

Referenced by exec().

Member Data Documentation

◆ EventReporter

std::unique_ptr<omptest::OmptEventReporter> TestCase::EventReporter
Initial value:
=
std::make_unique<omptest::OmptEventReporter>()

Definition at line 57 of file OmptTesterStandalone.h.

Referenced by exec().

◆ ExpectedState

Definition at line 50 of file OmptTesterStandalone.h.

Referenced by exec(), and TestCase().

◆ IsDisabled

bool TestCase::IsDisabled {false}

Definition at line 48 of file OmptTesterStandalone.h.

Referenced by exec(), TestCase(), and TestCase().

◆ Name

std::string TestCase::Name

Definition at line 49 of file OmptTesterStandalone.h.

Referenced by Registerer::Registerer(), TestCase(), and TestCase().

◆ ResultState

Definition at line 51 of file OmptTesterStandalone.h.

Referenced by exec().

◆ SequenceAsserter

std::unique_ptr<omptest::OmptSequencedAsserter> TestCase::SequenceAsserter
Initial value:
=
std::make_unique<omptest::OmptSequencedAsserter>()

Definition at line 53 of file OmptTesterStandalone.h.

Referenced by exec().

◆ SetAsserter

std::unique_ptr<omptest::OmptEventAsserter> TestCase::SetAsserter
Initial value:
=
std::make_unique<omptest::OmptEventAsserter>()

Definition at line 55 of file OmptTesterStandalone.h.

Referenced by exec().


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