Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
testing::status::internal::StatusIsMatcher Class Reference

Implements StatusIs() as a polymorphic matcher. More...

#include <status_matchers.h>

Public Member Functions

 StatusIsMatcher (::testing::Matcher< const absl::StatusCode > code_matcher, ::testing::Matcher< const std::string & > message_matcher)
 
template<typename T >
 operator::testing::Matcher () const
 

Detailed Description

Implements StatusIs() as a polymorphic matcher.

Definition at line 236 of file status_matchers.h.

Constructor & Destructor Documentation

◆ StatusIsMatcher()

testing::status::internal::StatusIsMatcher::StatusIsMatcher ( ::testing::Matcher< const absl::StatusCode > code_matcher,
::testing::Matcher< const std::string & > message_matcher )
inline

Definition at line 238 of file status_matchers.h.

Member Function Documentation

◆ operator::testing::Matcher()

template<typename T >
testing::status::internal::StatusIsMatcher::operator::testing::Matcher ( ) const
inline

Converts this polymorphic matcher to a monomorphic matcher of the given type. T can be StatusOr<>, Status, or a reference to either of them.

Definition at line 238 of file status_matchers.h.


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