Jon Test
C++ Unit Test Tool. Not for production -- sample code only
Loading...
Searching...
No Matches
Typedefs | Functions
anonymous_namespace{TestRunner.cpp} Namespace Reference

Typedefs

typedef std::pair< std::string, std::string > TestName
 A parsed Test name as a Test Suite name (.first), and a Test Case name (.second).
 

Functions

TestName parseTestName (const std::string &test)
 Parse test into a Test Suite Name and a Test Case name, which would be separated by a ":".
 

Typedef Documentation

◆ TestName

typedef std::pair<std::string, std::string> anonymous_namespace{TestRunner.cpp}::TestName

A parsed Test name as a Test Suite name (.first), and a Test Case name (.second).

This refers to:

  • An invalid TestName if both strings are empty strings.
  • A Test Case if both strings are not empty.
  • A Test Suite if the Test Suite name is not empty, but the Test Case name is empty.
    Note
    This definition does not state with a Test Suite or Test Case is in fact valid and defined; however, in context an invalid TestName can mean invalid.

Definition at line 24 of file TestRunner.cpp.

Function Documentation

◆ parseTestName()

TestName anonymous_namespace{TestRunner.cpp}::parseTestName ( const std::string &  test)

Parse test into a Test Suite Name and a Test Case name, which would be separated by a ":".

Returns
parsed TestName, where invalid means not parseable
Parameters
testto parse

Definition at line 31 of file TestRunner.cpp.