OR-Tools  9.3
matchers.cc File Reference

Go to the source code of this file.

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 
namespace  operations_research::math_opt
 

Functions

void PrintTo (const Termination &termination, std::ostream *os)
 
void PrintTo (const PrimalSolution &primal_solution, std::ostream *const os)
 
void PrintTo (const DualSolution &dual_solution, std::ostream *const os)
 
void PrintTo (const PrimalRay &primal_ray, std::ostream *const os)
 
void PrintTo (const DualRay &dual_ray, std::ostream *const os)
 
void PrintTo (const Basis &basis, std::ostream *const os)
 
void PrintTo (const Solution &solution, std::ostream *const os)
 
void PrintTo (const SolveResult &result, std::ostream *const os)
 
Matcher< VariableMap< double > > IsNearlySubsetOf (VariableMap< double > expected, double tolerance)
 
Matcher< VariableMap< double > > IsNear (VariableMap< double > expected, const double tolerance)
 
Matcher< LinearConstraintMap< double > > IsNearlySubsetOf (LinearConstraintMap< double > expected, double tolerance)
 
Matcher< LinearConstraintMap< double > > IsNear (LinearConstraintMap< double > expected, const double tolerance)
 
Matcher< PrimalSolution > IsNear (PrimalSolution expected, const double tolerance)
 
Matcher< DualSolution > IsNear (DualSolution expected, const double tolerance)
 
Matcher< Basis > BasisIs (const Basis &expected)
 
Matcher< Solution > IsNear (Solution expected, const SolutionMatcherOptions options)
 
Matcher< PrimalRay > IsNear (PrimalRay expected, const double tolerance)
 
Matcher< PrimalRay > PrimalRayIsNear (VariableMap< double > expected_var_values, const double tolerance)
 
Matcher< DualRay > IsNear (DualRay expected, const double tolerance)
 
Matcher< SolveResult > TerminatesWithOneOf (const std::vector< TerminationReason > &allowed)
 
Matcher< SolveResult > TerminatesWith (const TerminationReason expected)
 
testing::Matcher< SolveResult > TerminatesWithLimit (const Limit expected, const bool allow_limit_undetermined)
 
testing::Matcher< SolveResult > TerminatesWithReasonFeasible (const Limit expected, const bool allow_limit_undetermined)
 
testing::Matcher< SolveResult > TerminatesWithReasonNoSolutionFound (const Limit expected, const bool allow_limit_undetermined)
 
template<typename MatcherType >
std::string MatcherToStringImpl (const MatcherType &matcher, const bool negate)
 
template<typename T >
std::string MatcherToString (const Matcher< T > &matcher, bool negate)
 
template<typename T >
std::string MatcherToString (const ::testing::PolymorphicMatcher< T > &matcher, bool negate)
 
 MATCHER_P (FirstElementIs, first_element_matcher,(negation ? absl::StrCat("is empty or first element ", MatcherToString(first_element_matcher, true)) :absl::StrCat("has at least one element and first element ", MatcherToString(first_element_matcher, false))))
 
Matcher< SolveResult > IsOptimal (const std::optional< double > expected_objective, const double tolerance)
 
Matcher< SolveResult > IsOptimalWithSolution (const double expected_objective, const VariableMap< double > expected_variable_values, const double tolerance)
 
Matcher< SolveResult > IsOptimalWithDualSolution (const double expected_objective, const LinearConstraintMap< double > expected_dual_values, const VariableMap< double > expected_reduced_costs, const double tolerance)
 
Matcher< SolveResult > HasSolution (PrimalSolution expected, const double tolerance)
 
Matcher< SolveResult > HasDualSolution (DualSolution expected, const double tolerance)
 
Matcher< SolveResult > HasPrimalRay (PrimalRay expected, const double tolerance)
 
Matcher< SolveResult > HasPrimalRay (VariableMap< double > expected_vars, const double tolerance)
 
Matcher< SolveResult > HasDualRay (DualRay expected, const double tolerance)
 
Matcher< SolveResult > IsConsistentWith (const SolveResult &expected, const SolveResultMatcherOptions &options)
 
Matcher< IncrementalSolver::UpdateResult > DidUpdate ()
 

Variable Documentation

◆ value

const T& value

Definition at line 63 of file matchers.cc.