maliput
maliput::api::rules::test Namespace Reference

Classes

class  AssertionResultCollector
 AssertionResultCollector helps with the creation of concise and well-traced testing subroutines when using googletest. More...
 

Functions

::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const RuleStates &a, const RuleStates &b)
 Predicate-formatter which tests equality of RuleStates. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::unordered_map< Rule::Id, DiscreteValueRule::DiscreteValue > &a, const std::unordered_map< Rule::Id, DiscreteValueRule::DiscreteValue > &b)
 Predicate-formatter which tests equality of DiscreteValueRuleStates, which expands to std::unordered_map<Rule::Id, DiscreteValueRule::DiscreteValue>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::optional< BulbStates > &a, const std::optional< BulbStates > &b)
 Predicate-formatter which tests equality of std::optional<BulbStates>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const Phase &a, const Phase &b)
 Predicate-formatter which tests equality of Phase. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const PhaseRing::NextPhase &a, const PhaseRing::NextPhase &b)
 Predicate-formatter which tests equality of PhaseRing::NextPhase. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::vector< PhaseRing::NextPhase > &a, const std::vector< PhaseRing::NextPhase > &b)
 Predicate-formatter which tests equality of std::vector<PhaseRing::NextPhase>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::RangeValueRule::Range &a, const rules::RangeValueRule::Range &b)
 Predicate-formatter which tests equality of RangeValueRule::Range. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::vector< rules::RangeValueRule::Range > &a, const std::vector< rules::RangeValueRule::Range > &b)
 Predicate-formatter which tests equality of a vector of RangeValueRule::Ranges. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::RangeValueRule &a, const rules::RangeValueRule &b)
 Predicate-formatter which tests equality of RangeValueRule. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const DiscreteValueRule::DiscreteValue &a, const DiscreteValueRule::DiscreteValue &b)
 Predicate-formatter which tests equality of a DiscreteValueRule::DiscreteValue. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::vector< DiscreteValueRule::DiscreteValue > &a, const std::vector< DiscreteValueRule::DiscreteValue > &b)
 Predicate-formatter which tests equality of a vector of DiscreteValueRule::DiscreteValues. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::DiscreteValueRule &a, const rules::DiscreteValueRule &b)
 Predicate-formatter which tests equality of DiscreteValueRule. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, DirectionUsageRule::State::Type a, DirectionUsageRule::State::Type b)
 Predicate-formatter which tests equality of DirectionUsageRule::State::Type. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, DirectionUsageRule::State::Severity a, DirectionUsageRule::State::Severity b)
 Predicate-formatter which tests equality of DirectionUsageRule::State::Severity. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const DirectionUsageRule::State &a, const DirectionUsageRule::State &b)
 Predicate-formatter which tests equality of DirectionUsageRule::State. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::unordered_map< DirectionUsageRule::State::Id, DirectionUsageRule::State > &a, const std::unordered_map< DirectionUsageRule::State::Id, DirectionUsageRule::State > &b)
 Predicate-formatter which tests equality of DirectionUsageRule::State maps. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const DirectionUsageRule &a, const DirectionUsageRule &b)
 Predicate-formatter which tests equality of DirectionUsageRule. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, rules::RightOfWayRule::ZoneType a, rules::RightOfWayRule::ZoneType b)
 Predicate-formatter which tests equality of RightOfWayRule::ZoneType. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, rules::RightOfWayRule::State::Type a, rules::RightOfWayRule::State::Type b)
 Predicate-formatter which tests equality of RightOfWayRule::State::Type. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::RightOfWayRule::State &a, const rules::RightOfWayRule::State &b)
 Predicate-formatter which tests equality of RightOfWayRule::State. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::unordered_map< TrafficLight::Id, std::vector< BulbGroup::Id >> &a, const std::unordered_map< TrafficLight::Id, std::vector< BulbGroup::Id >> &b)
 Predicate-formatter which tests equality of RightOfWayRule::RelatedBulbGroups which expands to std::unordered_map<TrafficLight::Id, std::vector<BulbGroup::Id>>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::RightOfWayRule &a, const rules::RightOfWayRule &b)
 Predicate-formatter which tests equality of RightOfWayRule. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::RightOfWayRuleStateProvider::RightOfWayResult &a, const rules::RightOfWayRuleStateProvider::RightOfWayResult &b)
 Predicate-formatter which tests equality of RuleStateProvider::RightOfWayResult. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, rules::SpeedLimitRule::Severity a, rules::SpeedLimitRule::Severity b)
 Predicate-formatter which tests equality of SpeedLimitRule::Severity. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::SpeedLimitRule &a, const rules::SpeedLimitRule &b)
 Predicate-formatter which tests equality of SpeedLimitRule. More...
 
inline ::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const double &a, const double &b)
 Predicate-formatter which tests equality of double. More...
 
template<class T >
inline ::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const TypeSpecificIdentifier< T > &a, const TypeSpecificIdentifier< T > &b)
 Predicate-formatter which tests equality of TypeSpecificIdentifier<T>. More...
 
inline ::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const InertialPosition &a, const InertialPosition &b)
 Predicate-formatter which tests equality of InertialPosition. More...
 
inline ::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const Rotation &a, const Rotation &b)
 Predicate-formatter which tests equality of Rotation. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const BulbColor &a, const BulbColor &b)
 Predicate-formatter which tests equality of BulbColor. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const BulbType &a, const BulbType &b)
 Predicate-formatter which tests equality of BulbType. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const BulbState &a, const BulbState &b)
 Predicate-formatter which tests equality of BulbState. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::optional< double > &a, const std::optional< double > &b)
 Predicate-formatter which tests equality of std::optional<double>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const Bulb::BoundingBox &a, const Bulb::BoundingBox &b)
 Predicate-formatter which tests equality of Bulb::BoundingBox. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const Bulb *a, const Bulb *b)
 Predicate-formatter which tests equality of const Bulb*. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::vector< const Bulb * > &a, const std::vector< const Bulb * > &b)
 Predicate-formatter which tests equality of std::vector<const Bulb*>. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const BulbGroup *a, const BulbGroup *b)
 Predicate-formatter which tests equality of const BulbGroup*. More...
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const TrafficLight *a, const TrafficLight *b)
 Predicate-formatter which tests equality of const TrafficLight*. More...
 
template<typename T >
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const T *a, const T *b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, rules::DirectionUsageRule::State::Type a, rules::DirectionUsageRule::State::Type b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, rules::DirectionUsageRule::State::Severity a, rules::DirectionUsageRule::State::Severity b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::DirectionUsageRule::State &a, const rules::DirectionUsageRule::State &b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::unordered_map< rules::DirectionUsageRule::State::Id, rules::DirectionUsageRule::State > &a, const std::unordered_map< rules::DirectionUsageRule::State::Id, rules::DirectionUsageRule::State > &b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const rules::DirectionUsageRule &a, const rules::DirectionUsageRule &b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::vector< rules::RightOfWayRule::Id > &a, const std::vector< rules::RightOfWayRule::Id > &b)
 
::testing::AssertionResult IsEqual (const char *a_expression, const char *b_expression, const std::unordered_map< rules::RightOfWayRule::State::Id, rules::RightOfWayRule::State > &a, const std::unordered_map< rules::RightOfWayRule::State::Id, rules::RightOfWayRule::State > &b)
 

Function Documentation

◆ IsEqual() [1/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const Bulb a,
const Bulb b 
)

Predicate-formatter which tests equality of const Bulb*.

Note that pointers are not evaluated but the contents they refer to are.

◆ IsEqual() [2/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const Bulb::BoundingBox a,
const Bulb::BoundingBox b 
)

Predicate-formatter which tests equality of Bulb::BoundingBox.

◆ IsEqual() [3/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const BulbColor a,
const BulbColor b 
)

Predicate-formatter which tests equality of BulbColor.

◆ IsEqual() [4/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const BulbGroup a,
const BulbGroup b 
)

Predicate-formatter which tests equality of const BulbGroup*.

Note that pointers are not evaluated but the contents they refer to are.

◆ IsEqual() [5/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const BulbState a,
const BulbState b 
)

Predicate-formatter which tests equality of BulbState.

◆ IsEqual() [6/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const BulbType a,
const BulbType b 
)

Predicate-formatter which tests equality of BulbType.

◆ IsEqual() [7/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const DirectionUsageRule &  a,
const DirectionUsageRule &  b 
)

Predicate-formatter which tests equality of DirectionUsageRule.

◆ IsEqual() [8/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const DirectionUsageRule::State &  a,
const DirectionUsageRule::State &  b 
)

Predicate-formatter which tests equality of DirectionUsageRule::State.

◆ IsEqual() [9/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const DiscreteValueRule::DiscreteValue a,
const DiscreteValueRule::DiscreteValue b 
)

Predicate-formatter which tests equality of a DiscreteValueRule::DiscreteValue.

◆ IsEqual() [10/46]

inline ::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const double a,
const double b 
)

Predicate-formatter which tests equality of double.

◆ IsEqual() [11/46]

inline ::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const InertialPosition a,
const InertialPosition b 
)

Predicate-formatter which tests equality of InertialPosition.

◆ IsEqual() [12/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const Phase a,
const Phase b 
)

Predicate-formatter which tests equality of Phase.

◆ IsEqual() [13/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const PhaseRing::NextPhase a,
const PhaseRing::NextPhase b 
)

Predicate-formatter which tests equality of PhaseRing::NextPhase.

◆ IsEqual() [14/46]

inline ::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const Rotation a,
const Rotation b 
)

Predicate-formatter which tests equality of Rotation.

◆ IsEqual() [15/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::DirectionUsageRule &  a,
const rules::DirectionUsageRule &  b 
)

◆ IsEqual() [16/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::DirectionUsageRule::State &  a,
const rules::DirectionUsageRule::State &  b 
)

◆ IsEqual() [17/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::DiscreteValueRule a,
const rules::DiscreteValueRule b 
)

Predicate-formatter which tests equality of DiscreteValueRule.

◆ IsEqual() [18/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::RangeValueRule a,
const rules::RangeValueRule b 
)

Predicate-formatter which tests equality of RangeValueRule.

◆ IsEqual() [19/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::RangeValueRule::Range a,
const rules::RangeValueRule::Range b 
)

Predicate-formatter which tests equality of RangeValueRule::Range.

◆ IsEqual() [20/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::RightOfWayRule &  a,
const rules::RightOfWayRule &  b 
)

Predicate-formatter which tests equality of RightOfWayRule.

◆ IsEqual() [21/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::RightOfWayRule::State &  a,
const rules::RightOfWayRule::State &  b 
)

Predicate-formatter which tests equality of RightOfWayRule::State.

◆ IsEqual() [22/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::RightOfWayRuleStateProvider::RightOfWayResult &  a,
const rules::RightOfWayRuleStateProvider::RightOfWayResult &  b 
)

Predicate-formatter which tests equality of RuleStateProvider::RightOfWayResult.

◆ IsEqual() [23/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const rules::SpeedLimitRule &  a,
const rules::SpeedLimitRule &  b 
)

Predicate-formatter which tests equality of SpeedLimitRule.

◆ IsEqual() [24/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const RuleStates &  a,
const RuleStates &  b 
)

Predicate-formatter which tests equality of RuleStates.

◆ IsEqual() [25/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::optional< BulbStates > &  a,
const std::optional< BulbStates > &  b 
)

Predicate-formatter which tests equality of std::optional<BulbStates>.

◆ IsEqual() [26/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::optional< double > &  a,
const std::optional< double > &  b 
)

Predicate-formatter which tests equality of std::optional<double>.

◆ IsEqual() [27/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::unordered_map< DirectionUsageRule::State::Id, DirectionUsageRule::State > &  a,
const std::unordered_map< DirectionUsageRule::State::Id, DirectionUsageRule::State > &  b 
)

Predicate-formatter which tests equality of DirectionUsageRule::State maps.

◆ IsEqual() [28/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::unordered_map< Rule::Id, DiscreteValueRule::DiscreteValue > &  a,
const std::unordered_map< Rule::Id, DiscreteValueRule::DiscreteValue > &  b 
)

Predicate-formatter which tests equality of DiscreteValueRuleStates, which expands to std::unordered_map<Rule::Id, DiscreteValueRule::DiscreteValue>.

◆ IsEqual() [29/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::unordered_map< rules::DirectionUsageRule::State::Id, rules::DirectionUsageRule::State > &  a,
const std::unordered_map< rules::DirectionUsageRule::State::Id, rules::DirectionUsageRule::State > &  b 
)

◆ IsEqual() [30/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::unordered_map< rules::RightOfWayRule::State::Id, rules::RightOfWayRule::State > &  a,
const std::unordered_map< rules::RightOfWayRule::State::Id, rules::RightOfWayRule::State > &  b 
)

◆ IsEqual() [31/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::unordered_map< TrafficLight::Id, std::vector< BulbGroup::Id >> &  a,
const std::unordered_map< TrafficLight::Id, std::vector< BulbGroup::Id >> &  b 
)

Predicate-formatter which tests equality of RightOfWayRule::RelatedBulbGroups which expands to std::unordered_map<TrafficLight::Id, std::vector<BulbGroup::Id>>.

◆ IsEqual() [32/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::vector< const Bulb * > &  a,
const std::vector< const Bulb * > &  b 
)

Predicate-formatter which tests equality of std::vector<const Bulb*>.

Note that pointers are not evaluated but the contents they refer to are.

◆ IsEqual() [33/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::vector< DiscreteValueRule::DiscreteValue > &  a,
const std::vector< DiscreteValueRule::DiscreteValue > &  b 
)

Predicate-formatter which tests equality of a vector of DiscreteValueRule::DiscreteValues.

◆ IsEqual() [34/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::vector< PhaseRing::NextPhase > &  a,
const std::vector< PhaseRing::NextPhase > &  b 
)

Predicate-formatter which tests equality of std::vector<PhaseRing::NextPhase>.

◆ IsEqual() [35/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::vector< rules::RangeValueRule::Range > &  a,
const std::vector< rules::RangeValueRule::Range > &  b 
)

Predicate-formatter which tests equality of a vector of RangeValueRule::Ranges.

◆ IsEqual() [36/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const std::vector< rules::RightOfWayRule::Id > &  a,
const std::vector< rules::RightOfWayRule::Id > &  b 
)

◆ IsEqual() [37/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const T *  a,
const T *  b 
)

◆ IsEqual() [38/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
const TrafficLight a,
const TrafficLight b 
)

Predicate-formatter which tests equality of const TrafficLight*.

Note that pointers are not evaluated but the contents they refer to are.

◆ IsEqual() [39/46]

inline ::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
const TypeSpecificIdentifier< T > &  a,
const TypeSpecificIdentifier< T > &  b 
)

Predicate-formatter which tests equality of TypeSpecificIdentifier<T>.

◆ IsEqual() [40/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
DirectionUsageRule::State::Severity  a,
DirectionUsageRule::State::Severity  b 
)

Predicate-formatter which tests equality of DirectionUsageRule::State::Severity.

◆ IsEqual() [41/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
DirectionUsageRule::State::Type  a,
DirectionUsageRule::State::Type  b 
)

Predicate-formatter which tests equality of DirectionUsageRule::State::Type.

◆ IsEqual() [42/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
rules::DirectionUsageRule::State::Severity  a,
rules::DirectionUsageRule::State::Severity  b 
)

◆ IsEqual() [43/46]

::testing::AssertionResult maliput::api::rules::test::IsEqual ( const char *  a_expression,
const char *  b_expression,
rules::DirectionUsageRule::State::Type  a,
rules::DirectionUsageRule::State::Type  b 
)

◆ IsEqual() [44/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
rules::RightOfWayRule::State::Type  a,
rules::RightOfWayRule::State::Type  b 
)

Predicate-formatter which tests equality of RightOfWayRule::State::Type.

◆ IsEqual() [45/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
rules::RightOfWayRule::ZoneType  a,
rules::RightOfWayRule::ZoneType  b 
)

Predicate-formatter which tests equality of RightOfWayRule::ZoneType.

◆ IsEqual() [46/46]

testing::AssertionResult IsEqual ( const char *  a_expression,
const char *  b_expression,
rules::SpeedLimitRule::Severity  a,
rules::SpeedLimitRule::Severity  b 
)

Predicate-formatter which tests equality of SpeedLimitRule::Severity.