GrPPI  1.0
Generic and Reusable Parallel Pattern Interface
Macros | Functions
cmake-build-debug/googletest-src/googlemock/include/gmock/gmock-matchers.h File Reference
#include <algorithm>
#include <cmath>
#include <initializer_list>
#include <iterator>
#include <limits>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
#include "gmock/internal/gmock-pp.h"
#include "gtest/gtest.h"
#include "gmock/internal/custom/gmock-matchers.h"
Include dependency graph for cmake-build-debug/googletest-src/googlemock/include/gmock/gmock-matchers.h:

Go to the source code of this file.

Macros

#define GMOCK_MAYBE_5046_
 << DiffStrings(str, arg); More...
 
#define ASSERT_THAT(value, matcher)
 
#define EXPECT_THAT(value, matcher)
 
#define MATCHER(name, description)
 
#define MATCHER_P(name, p0, description)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP, description, (p0))
 
#define MATCHER_P2(name, p0, p1, description)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP2, description, (p0, p1))
 
#define MATCHER_P3(name, p0, p1, p2, description)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP3, description, (p0, p1, p2))
 
#define MATCHER_P4(name, p0, p1, p2, p3, description)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP4, description, (p0, p1, p2, p3))
 
#define MATCHER_P5(name, p0, p1, p2, p3, p4, description)
 
#define MATCHER_P6(name, p0, p1, p2, p3, p4, p5, description)
 
#define MATCHER_P7(name, p0, p1, p2, p3, p4, p5, p6, description)
 
#define MATCHER_P8(name, p0, p1, p2, p3, p4, p5, p6, p7, description)
 
#define MATCHER_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, description)
 
#define MATCHER_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, description)
 
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
 
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS(args)
 
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM(i_unused, data_unused, arg)    , typename arg##_type
 
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAMS(args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_TYPE_PARAM, , args))
 
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAM(i_unused, data_unused, arg)    , arg##_type
 
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARGS(args)
 
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG(i, data_unused, arg)    , arg##_type gmock_p##i
 
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARGS(args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_FORWARD_ARG, , args))
 
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARG(i, data_unused, arg)    , arg(::std::forward<arg##_type>(gmock_p##i))
 
#define GMOCK_INTERNAL_MATCHER_MEMBERS(args)    GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER, , args)
 
#define GMOCK_INTERNAL_MATCHER_MEMBER(i_unused, data_unused, arg)    const arg##_type arg;
 
#define GMOCK_INTERNAL_MATCHER_MEMBERS_USAGE(args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER_USAGE, , args))
 
#define GMOCK_INTERNAL_MATCHER_MEMBER_USAGE(i_unused, data_unused, arg)   , arg
 
#define GMOCK_INTERNAL_MATCHER_ARGS_USAGE(args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_ARG_USAGE, , args))
 
#define GMOCK_INTERNAL_MATCHER_ARG_USAGE(i, data_unused, arg_unused)    , gmock_p##i
 

Functions

 GTEST_DISABLE_MSC_WARNINGS_PUSH_ (4251 GMOCK_MAYBE_5046_) namespace testing
 

Macro Definition Documentation

◆ ASSERT_THAT

#define ASSERT_THAT (   value,
  matcher 
)
Value:
::testing::internal::MakePredicateFormatterFromMatcher(matcher), value)
#define ASSERT_PRED_FORMAT1(pred_format, v1)
Definition: cmake-build-debug/googletest-src/googletest/include/gtest/gtest_pred_impl.h:118

◆ EXPECT_THAT

#define EXPECT_THAT (   value,
  matcher 
)
Value:
::testing::internal::MakePredicateFormatterFromMatcher(matcher), value)
#define EXPECT_PRED_FORMAT1(pred_format, v1)
Definition: cmake-build-debug/googletest-src/googletest/include/gtest/gtest_pred_impl.h:114

◆ GMOCK_INTERNAL_MATCHER

#define GMOCK_INTERNAL_MATCHER (   name,
  full_name,
  description,
  args 
)

◆ GMOCK_INTERNAL_MATCHER_ARG_USAGE

#define GMOCK_INTERNAL_MATCHER_ARG_USAGE (   i,
  data_unused,
  arg_unused 
)     , gmock_p##i

◆ GMOCK_INTERNAL_MATCHER_ARGS_USAGE

#define GMOCK_INTERNAL_MATCHER_ARGS_USAGE (   args)     GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_ARG_USAGE, , args))

◆ GMOCK_INTERNAL_MATCHER_FORWARD_ARG

#define GMOCK_INTERNAL_MATCHER_FORWARD_ARG (   i,
  data_unused,
  arg 
)     , arg(::std::forward<arg##_type>(gmock_p##i))

◆ GMOCK_INTERNAL_MATCHER_FORWARD_ARGS

#define GMOCK_INTERNAL_MATCHER_FORWARD_ARGS (   args)     GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_FORWARD_ARG, , args))

◆ GMOCK_INTERNAL_MATCHER_FUNCTION_ARG

#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG (   i,
  data_unused,
  arg 
)     , arg##_type gmock_p##i

◆ GMOCK_INTERNAL_MATCHER_FUNCTION_ARGS

#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARGS (   args)
Value:
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG(i, data_unused, arg)
#define GMOCK_PP_TAIL(...)
Definition: cmake-build-debug/googletest-src/googlemock/include/gmock/internal/gmock-pp.h:44
#define GMOCK_PP_FOR_EACH(_Macro, _Data, _Tuple)
Definition: cmake-build-debug/googletest-src/googlemock/include/gmock/internal/gmock-pp.h:131

◆ GMOCK_INTERNAL_MATCHER_MEMBER

#define GMOCK_INTERNAL_MATCHER_MEMBER (   i_unused,
  data_unused,
  arg 
)     const arg##_type arg;

◆ GMOCK_INTERNAL_MATCHER_MEMBER_USAGE

#define GMOCK_INTERNAL_MATCHER_MEMBER_USAGE (   i_unused,
  data_unused,
  arg 
)    , arg

◆ GMOCK_INTERNAL_MATCHER_MEMBERS

#define GMOCK_INTERNAL_MATCHER_MEMBERS (   args)     GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER, , args)

◆ GMOCK_INTERNAL_MATCHER_MEMBERS_USAGE

#define GMOCK_INTERNAL_MATCHER_MEMBERS_USAGE (   args)     GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER_USAGE, , args))

◆ GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM

#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM (   i_unused,
  data_unused,
  arg 
)     , typename arg##_type

◆ GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS

#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS (   args)
Value:
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM(i_unused, data_unused, arg)

◆ GMOCK_INTERNAL_MATCHER_TYPE_PARAM

#define GMOCK_INTERNAL_MATCHER_TYPE_PARAM (   i_unused,
  data_unused,
  arg 
)     , arg##_type

◆ GMOCK_INTERNAL_MATCHER_TYPE_PARAMS

#define GMOCK_INTERNAL_MATCHER_TYPE_PARAMS (   args)     GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_TYPE_PARAM, , args))

◆ GMOCK_MAYBE_5046_

#define GMOCK_MAYBE_5046_

<< DiffStrings(str, arg);

◆ MATCHER

#define MATCHER (   name,
  description 
)

◆ MATCHER_P

#define MATCHER_P (   name,
  p0,
  description 
)     GMOCK_INTERNAL_MATCHER(name, name##MatcherP, description, (p0))

◆ MATCHER_P10

#define MATCHER_P10 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8,
  p9,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP10, description, \
(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)

◆ MATCHER_P2

#define MATCHER_P2 (   name,
  p0,
  p1,
  description 
)     GMOCK_INTERNAL_MATCHER(name, name##MatcherP2, description, (p0, p1))

◆ MATCHER_P3

#define MATCHER_P3 (   name,
  p0,
  p1,
  p2,
  description 
)     GMOCK_INTERNAL_MATCHER(name, name##MatcherP3, description, (p0, p1, p2))

◆ MATCHER_P4

#define MATCHER_P4 (   name,
  p0,
  p1,
  p2,
  p3,
  description 
)     GMOCK_INTERNAL_MATCHER(name, name##MatcherP4, description, (p0, p1, p2, p3))

◆ MATCHER_P5

#define MATCHER_P5 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP5, description, \
(p0, p1, p2, p3, p4))

◆ MATCHER_P6

#define MATCHER_P6 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP6, description, \
(p0, p1, p2, p3, p4, p5))

◆ MATCHER_P7

#define MATCHER_P7 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP7, description, \
(p0, p1, p2, p3, p4, p5, p6))

◆ MATCHER_P8

#define MATCHER_P8 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP8, description, \
(p0, p1, p2, p3, p4, p5, p6, p7))

◆ MATCHER_P9

#define MATCHER_P9 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP9, description, \
(p0, p1, p2, p3, p4, p5, p6, p7, p8))

Function Documentation

◆ GTEST_DISABLE_MSC_WARNINGS_PUSH_()

GTEST_DISABLE_MSC_WARNINGS_PUSH_ ( 4251  GMOCK_MAYBE_5046_)