rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | Friends | List of all members
beast::unit_test::suite_info Class Reference

Associates a unit test type with metadata. More...

#include <suite_info.h>

Collaboration diagram for beast::unit_test::suite_info:
Collaboration graph
[legend]

Public Member Functions

 suite_info (std::string name, std::string module, std::string library, bool manual, int priority, run_type run)
 
std::string const & name () const
 
std::string const & module () const
 
std::string const & library () const
 
bool manual () const
 Returns true if this suite only runs manually.
 
std::string full_name () const
 Return the canonical suite name as a string.
 
void run (runner &r) const
 Run a new instance of the associated test suite.
 

Private Types

using run_type = std::function< void(runner &)>
 

Private Attributes

std::string name_
 
std::string module_
 
std::string library_
 
bool manual_
 
int priority_
 
run_type run_
 

Friends

bool operator< (suite_info const &lhs, suite_info const &rhs)
 

Detailed Description

Associates a unit test type with metadata.

Definition at line 19 of file suite_info.h.

Member Typedef Documentation

◆ run_type

Definition at line 21 of file suite_info.h.

Constructor & Destructor Documentation

◆ suite_info()

beast::unit_test::suite_info::suite_info ( std::string  name,
std::string  module,
std::string  library,
bool  manual,
int  priority,
run_type  run 
)

Definition at line 31 of file suite_info.h.

Member Function Documentation

◆ name()

std::string const & beast::unit_test::suite_info::name ( ) const

Definition at line 48 of file suite_info.h.

◆ module()

std::string const & beast::unit_test::suite_info::module ( ) const

Definition at line 54 of file suite_info.h.

◆ library()

std::string const & beast::unit_test::suite_info::library ( ) const

Definition at line 60 of file suite_info.h.

◆ manual()

bool beast::unit_test::suite_info::manual ( ) const

Returns true if this suite only runs manually.

Definition at line 67 of file suite_info.h.

◆ full_name()

std::string beast::unit_test::suite_info::full_name ( ) const

Return the canonical suite name as a string.

Definition at line 74 of file suite_info.h.

◆ run()

void beast::unit_test::suite_info::run ( runner r) const

Run a new instance of the associated test suite.

Definition at line 81 of file suite_info.h.

Friends And Related Symbol Documentation

◆ operator<

bool operator< ( suite_info const &  lhs,
suite_info const &  rhs 
)
friend

Definition at line 86 of file suite_info.h.

Member Data Documentation

◆ name_

std::string beast::unit_test::suite_info::name_
private

Definition at line 23 of file suite_info.h.

◆ module_

std::string beast::unit_test::suite_info::module_
private

Definition at line 24 of file suite_info.h.

◆ library_

std::string beast::unit_test::suite_info::library_
private

Definition at line 25 of file suite_info.h.

◆ manual_

bool beast::unit_test::suite_info::manual_
private

Definition at line 26 of file suite_info.h.

◆ priority_

int beast::unit_test::suite_info::priority_
private

Definition at line 27 of file suite_info.h.

◆ run_

run_type beast::unit_test::suite_info::run_
private

Definition at line 28 of file suite_info.h.