Qt-Mocks 0.8.0-alpha.9
Mocking library using Qt Test inspired by Google Test
 
Loading...
Searching...
No Matches
qt_mocks::common_matchers::ExpectedValue< ValueType > Class Template Reference

Represents an expected value for comparison in matcher operations. More...

#include <Matchers.hpp>

Inheritance diagram for qt_mocks::common_matchers::ExpectedValue< ValueType >:
Collaboration diagram for qt_mocks::common_matchers::ExpectedValue< ValueType >:

Public Member Functions

 ExpectedValue (ValueType value)
 Constructs an expected value for the given value.
 
const ValueType & value () const noexcept
 Retrieves the current value.
 

Detailed Description

template<typename ValueType>
class qt_mocks::common_matchers::ExpectedValue< ValueType >

Represents an expected value for comparison in matcher operations.

Template Parameters
ValueTypeThe type of value to be expected.

Constructor & Destructor Documentation

◆ ExpectedValue()

template<typename ValueType>
qt_mocks::common_matchers::ExpectedValue< ValueType >::ExpectedValue ( ValueType value)
explicit

Constructs an expected value for the given value.

Parameters
valueThe value to set as the expected value for the matcher.
Here is the call graph for this function:

Member Function Documentation

◆ value()

template<typename ValueType>
const ValueType & qt_mocks::common_matchers::ExpectedValue< ValueType >::value ( ) const
nodiscardnoexcept

Retrieves the current value.

Returns
The current value.
Here is the caller graph for this function: