My Project
Public Member Functions | List of all members
bsl::ut_given Class Referencefinal

Defines the initial state of a unit test scenario including the creation of any objects that might participate in the unit test. More...

#include <ut.hpp>

Public Member Functions

template<typename FUNC >
constexpr ut_givenoperator= (FUNC &&func) noexcept
 Executes a lambda function as the body of the "given" portion of the scenario. More...
 

Detailed Description

Defines the initial state of a unit test scenario including the creation of any objects that might participate in the unit test.

Member Function Documentation

◆ operator=()

template<typename FUNC >
constexpr ut_given& bsl::ut_given::operator= ( FUNC &&  func)
inlinenoexcept

Executes a lambda function as the body of the "given" portion of the scenario.

Template Parameters
FUNCthe type of lambda being executed
Parameters
functhe lambda being executed
Returns
Returns a reference to the ut_given.

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