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

Classes

struct  ProtoComparison
 Options for comparing two protobufs. More...
 
class  ProtoMatcher
 

Typedefs

typedef ::google::protobuf::util::MessageDifferencer::MessageFieldComparison ProtoFieldComparison
 
typedef ::google::protobuf::util::DefaultFieldComparator::FloatComparison ProtoFloatComparison
 How to compare two floating-points (exact vs. approximate).
 
typedef ::google::protobuf::util::MessageDifferencer::RepeatedFieldComparison RepeatedFieldComparison
 How to compare repeated fields (whether the order of elements matters).
 
typedef ::google::protobuf::util::MessageDifferencer::Scope ProtoComparisonScope
 
using PolymorphicProtoMatcher = PolymorphicMatcher<ProtoMatcher>
 

Variables

const ProtoFieldComparison kProtoEqual
 
const ProtoFieldComparison kProtoEquiv
 
const ProtoFloatComparison kProtoExact
 
const ProtoFloatComparison kProtoApproximate
 
const RepeatedFieldComparison kProtoCompareRepeatedFieldsRespectOrdering
 
const RepeatedFieldComparison kProtoCompareRepeatedFieldsIgnoringOrdering
 
const ProtoComparisonScope kProtoFull
 
const ProtoComparisonScope kProtoPartial
 
const bool kMustBeInitialized = true
 Whether the protobuf must be initialized.
 
const bool kMayBeUninitialized = false
 

Typedef Documentation

◆ PolymorphicProtoMatcher

Definition at line 150 of file message_matchers.h.

◆ ProtoComparisonScope

typedef ::google::protobuf::util::MessageDifferencer::Scope testing::internal::ProtoComparisonScope

Whether to compare all fields (full) or only fields present in the expected protobuf (partial).

Definition at line 43 of file message_matchers.h.

◆ ProtoFieldComparison

typedef ::google::protobuf::util::MessageDifferencer::MessageFieldComparison testing::internal::ProtoFieldComparison

Utilities. How to compare two fields (equal vs. equivalent).

Definition at line 30 of file message_matchers.h.

◆ ProtoFloatComparison

typedef ::google::protobuf::util::DefaultFieldComparator::FloatComparison testing::internal::ProtoFloatComparison

How to compare two floating-points (exact vs. approximate).

Definition at line 34 of file message_matchers.h.

◆ RepeatedFieldComparison

typedef ::google::protobuf::util::MessageDifferencer::RepeatedFieldComparison testing::internal::RepeatedFieldComparison

How to compare repeated fields (whether the order of elements matters).

Definition at line 38 of file message_matchers.h.

Variable Documentation

◆ kMayBeUninitialized

const bool testing::internal::kMayBeUninitialized = false

Definition at line 97 of file message_matchers.h.

◆ kMustBeInitialized

const bool testing::internal::kMustBeInitialized = true

Whether the protobuf must be initialized.

Definition at line 96 of file message_matchers.h.

◆ kProtoApproximate

const ProtoFloatComparison testing::internal::kProtoApproximate
Initial value:
=
::google::protobuf::util::DefaultFieldComparator::APPROXIMATE

Definition at line 51 of file message_matchers.h.

◆ kProtoCompareRepeatedFieldsIgnoringOrdering

const RepeatedFieldComparison testing::internal::kProtoCompareRepeatedFieldsIgnoringOrdering
Initial value:
=
::google::protobuf::util::MessageDifferencer::AS_SET

Definition at line 55 of file message_matchers.h.

◆ kProtoCompareRepeatedFieldsRespectOrdering

const RepeatedFieldComparison testing::internal::kProtoCompareRepeatedFieldsRespectOrdering
Initial value:
=
::google::protobuf::util::MessageDifferencer::AS_LIST

Definition at line 53 of file message_matchers.h.

◆ kProtoEqual

const ProtoFieldComparison testing::internal::kProtoEqual
Initial value:
=
::google::protobuf::util::MessageDifferencer::EQUAL

Definition at line 45 of file message_matchers.h.

◆ kProtoEquiv

const ProtoFieldComparison testing::internal::kProtoEquiv
Initial value:
=
::google::protobuf::util::MessageDifferencer::EQUIVALENT

Definition at line 47 of file message_matchers.h.

◆ kProtoExact

const ProtoFloatComparison testing::internal::kProtoExact
Initial value:
=
::google::protobuf::util::DefaultFieldComparator::EXACT

Definition at line 49 of file message_matchers.h.

◆ kProtoFull

const ProtoComparisonScope testing::internal::kProtoFull
Initial value:
=
::google::protobuf::util::MessageDifferencer::FULL

Definition at line 57 of file message_matchers.h.

◆ kProtoPartial

const ProtoComparisonScope testing::internal::kProtoPartial
Initial value:
=
::google::protobuf::util::MessageDifferencer::PARTIAL

Definition at line 59 of file message_matchers.h.