#include <gmock-matchers.h>
Definition at line 3311 of file gmock-matchers.h.
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeNegationToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
Definition at line 416 of file gmock-matchers.cc.
References i.
419 *os <<
"isn't empty";
423 *os <<
"doesn't have " <<
Elements(1)
424 <<
", or has " <<
Elements(1) <<
" that ";
429 <<
", or there exists no permutation of elements such that:\n";
430 const char* sep =
"";
432 *os << sep <<
" - element #" <<
i <<
" ";
static Message Elements(size_t n)
MatcherDescriberVec matcher_describers_
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeNegationToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeNegationToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
Definition at line 395 of file gmock-matchers.cc.
References i.
402 *os <<
"has " <<
Elements(1) <<
" and that element ";
407 <<
" and there exists some permutation of elements such that:\n";
408 const char* sep =
"";
410 *os << sep <<
" - element #" <<
i <<
" ";
static Message Elements(size_t n)
MatcherDescriberVec matcher_describers_
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
void testing::internal::UnorderedElementsAreMatcherImplBase::DescribeToImpl |
( |
::std::ostream * |
os | ) |
const |
|
protected |
static Message testing::internal::UnorderedElementsAreMatcherImplBase::Elements |
( |
size_t |
n | ) |
|
|
inlinestaticprotected |
static Message testing::internal::UnorderedElementsAreMatcherImplBase::Elements |
( |
size_t |
n | ) |
|
|
inlinestaticprotected |
Definition at line 3333 of file gmock-matchers.h.
3334 return Message() << n <<
" element" << (n == 1 ?
"" :
"s");
static Message testing::internal::UnorderedElementsAreMatcherImplBase::Elements |
( |
size_t |
n | ) |
|
|
inlinestaticprotected |
MatcherDescriberVec& testing::internal::UnorderedElementsAreMatcherImplBase::matcher_describers |
( |
| ) |
|
|
inlineprotected |
MatcherDescriberVec& testing::internal::UnorderedElementsAreMatcherImplBase::matcher_describers |
( |
| ) |
|
|
inlineprotected |
MatcherDescriberVec& testing::internal::UnorderedElementsAreMatcherImplBase::matcher_describers |
( |
| ) |
|
|
inlineprotected |
bool testing::internal::UnorderedElementsAreMatcherImplBase::VerifyAllElementsAndMatchersAreMatched |
( |
const ::std::vector< string > & |
element_printouts, |
|
|
const MatchMatrix & |
matrix, |
|
|
MatchResultListener * |
listener |
|
) |
| const |
|
protected |
Definition at line 444 of file gmock-matchers.cc.
References testing::internal::MatchMatrix::HasEdge(), testing::MatchResultListener::IsInterested(), testing::internal::MatchMatrix::LhsSize(), testing::internal::MatchMatrix::RhsSize(), and testing::MatchResultListener::stream().
449 ::std::vector<char> element_matched(matrix.LhsSize(), 0);
450 ::std::vector<char> matcher_matched(matrix.RhsSize(), 0);
452 for (
size_t ilhs = 0; ilhs < matrix.LhsSize(); ilhs++) {
453 for (
size_t irhs = 0; irhs < matrix.RhsSize(); irhs++) {
454 char matched = matrix.HasEdge(ilhs, irhs);
455 element_matched[ilhs] |= matched;
456 matcher_matched[irhs] |= matched;
462 "where the following matchers don't match any elements:\n";
463 for (
size_t mi = 0;
mi < matcher_matched.size(); ++
mi) {
464 if (matcher_matched[
mi])
467 if (listener->IsInterested()) {
468 *listener << sep <<
"matcher #" << mi <<
": ";
477 "where the following elements don't match any matchers:\n";
478 const char* outer_sep =
"";
480 outer_sep =
"\nand ";
482 for (
size_t ei = 0; ei < element_matched.size(); ++ei) {
483 if (element_matched[ei])
486 if (listener->IsInterested()) {
487 *listener << outer_sep << sep <<
"element #" << ei <<
": " 488 << element_printouts[ei];
MatcherDescriberVec matcher_describers_
bool testing::internal::UnorderedElementsAreMatcherImplBase::VerifyAllElementsAndMatchersAreMatched |
( |
const ::std::vector< string > & |
element_printouts, |
|
|
const MatchMatrix & |
matrix, |
|
|
MatchResultListener * |
listener |
|
) |
| const |
|
protected |
bool testing::internal::UnorderedElementsAreMatcherImplBase::VerifyAllElementsAndMatchersAreMatched |
( |
const ::std::vector< string > & |
element_printouts, |
|
|
const MatchMatrix & |
matrix, |
|
|
MatchResultListener * |
listener |
|
) |
| const |
|
protected |
MatcherDescriberVec testing::internal::UnorderedElementsAreMatcherImplBase::matcher_describers_ |
|
private |
The documentation for this class was generated from the following files: