Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
gtest_pred_impl.h File Reference
#include "gtest/gtest.h"
Include dependency graph for gtest_pred_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  testing
 

Macros

#define GTEST_ASSERT_(expression, on_failure)
 
#define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)
 
#define GTEST_PRED1_(pred, v1, on_failure)
 
#define EXPECT_PRED_FORMAT1(pred_format, v1)
 
#define EXPECT_PRED1(pred, v1)
 
#define ASSERT_PRED_FORMAT1(pred_format, v1)
 
#define ASSERT_PRED1(pred, v1)
 
#define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)
 
#define GTEST_PRED2_(pred, v1, v2, on_failure)
 
#define EXPECT_PRED_FORMAT2(pred_format, v1, v2)
 
#define EXPECT_PRED2(pred, v1, v2)
 
#define ASSERT_PRED_FORMAT2(pred_format, v1, v2)
 
#define ASSERT_PRED2(pred, v1, v2)
 
#define GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, on_failure)
 
#define GTEST_PRED3_(pred, v1, v2, v3, on_failure)
 
#define EXPECT_PRED_FORMAT3(pred_format, v1, v2, v3)
 
#define EXPECT_PRED3(pred, v1, v2, v3)
 
#define ASSERT_PRED_FORMAT3(pred_format, v1, v2, v3)
 
#define ASSERT_PRED3(pred, v1, v2, v3)
 
#define GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, on_failure)
 
#define GTEST_PRED4_(pred, v1, v2, v3, v4, on_failure)
 
#define EXPECT_PRED_FORMAT4(pred_format, v1, v2, v3, v4)
 
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
 
#define ASSERT_PRED_FORMAT4(pred_format, v1, v2, v3, v4)
 
#define ASSERT_PRED4(pred, v1, v2, v3, v4)
 
#define GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, on_failure)
 
#define GTEST_PRED5_(pred, v1, v2, v3, v4, v5, on_failure)
 
#define EXPECT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5)
 
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
 
#define ASSERT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5)
 
#define ASSERT_PRED5(pred, v1, v2, v3, v4, v5)
 

Functions

template<typename Pred , typename T1 >
AssertionResult testing::AssertPred1Helper (const char *pred_text, const char *e1, Pred pred, const T1 &v1)
 
template<typename Pred , typename T1 , typename T2 >
AssertionResult testing::AssertPred2Helper (const char *pred_text, const char *e1, const char *e2, Pred pred, const T1 &v1, const T2 &v2)
 
template<typename Pred , typename T1 , typename T2 , typename T3 >
AssertionResult testing::AssertPred3Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 >
AssertionResult testing::AssertPred4Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
AssertionResult testing::AssertPred5Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, const char *e5, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)
 

Macro Definition Documentation

◆ ASSERT_PRED1

#define ASSERT_PRED1 ( pred,
v1 )
Value:
#define GTEST_FATAL_FAILURE_(message)
#define GTEST_PRED1_(pred, v1, on_failure)

Definition at line 116 of file gtest_pred_impl.h.

116#define ASSERT_PRED1(pred, v1) \
117 GTEST_PRED1_(pred, v1, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED2

#define ASSERT_PRED2 ( pred,
v1,
v2 )
Value:
#define GTEST_PRED2_(pred, v1, v2, on_failure)

Definition at line 164 of file gtest_pred_impl.h.

164#define ASSERT_PRED2(pred, v1, v2) \
165 GTEST_PRED2_(pred, v1, v2, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED3

#define ASSERT_PRED3 ( pred,
v1,
v2,
v3 )
Value:
#define GTEST_PRED3_(pred, v1, v2, v3, on_failure)

Definition at line 219 of file gtest_pred_impl.h.

219#define ASSERT_PRED3(pred, v1, v2, v3) \
220 GTEST_PRED3_(pred, v1, v2, v3, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED4

#define ASSERT_PRED4 ( pred,
v1,
v2,
v3,
v4 )
Value:
GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_FATAL_FAILURE_)
#define GTEST_PRED4_(pred, v1, v2, v3, v4, on_failure)

Definition at line 281 of file gtest_pred_impl.h.

281#define ASSERT_PRED4(pred, v1, v2, v3, v4) \
282 GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED5

#define ASSERT_PRED5 ( pred,
v1,
v2,
v3,
v4,
v5 )
Value:
GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_)
#define GTEST_PRED5_(pred, v1, v2, v3, v4, v5, on_failure)

Definition at line 350 of file gtest_pred_impl.h.

350#define ASSERT_PRED5(pred, v1, v2, v3, v4, v5) \
351 GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED_FORMAT1

#define ASSERT_PRED_FORMAT1 ( pred_format,
v1 )
Value:
#define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)

Definition at line 114 of file gtest_pred_impl.h.

114#define ASSERT_PRED_FORMAT1(pred_format, v1) \
115 GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED_FORMAT2

#define ASSERT_PRED_FORMAT2 ( pred_format,
v1,
v2 )
Value:
#define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)

Definition at line 162 of file gtest_pred_impl.h.

162#define ASSERT_PRED_FORMAT2(pred_format, v1, v2) \
163 GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED_FORMAT3

#define ASSERT_PRED_FORMAT3 ( pred_format,
v1,
v2,
v3 )
Value:
GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_FATAL_FAILURE_)
#define GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, on_failure)

Definition at line 217 of file gtest_pred_impl.h.

217#define ASSERT_PRED_FORMAT3(pred_format, v1, v2, v3) \
218 GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED_FORMAT4

#define ASSERT_PRED_FORMAT4 ( pred_format,
v1,
v2,
v3,
v4 )
Value:
GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_FATAL_FAILURE_)
#define GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, on_failure)

Definition at line 279 of file gtest_pred_impl.h.

279#define ASSERT_PRED_FORMAT4(pred_format, v1, v2, v3, v4) \
280 GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_FATAL_FAILURE_)

◆ ASSERT_PRED_FORMAT5

#define ASSERT_PRED_FORMAT5 ( pred_format,
v1,
v2,
v3,
v4,
v5 )
Value:
GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_)
#define GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, on_failure)

Definition at line 348 of file gtest_pred_impl.h.

348#define ASSERT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5) \
349 GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_)

◆ EXPECT_PRED1

#define EXPECT_PRED1 ( pred,
v1 )
Value:
#define GTEST_NONFATAL_FAILURE_(message)

Definition at line 112 of file gtest_pred_impl.h.

112#define EXPECT_PRED1(pred, v1) \
113 GTEST_PRED1_(pred, v1, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED2

#define EXPECT_PRED2 ( pred,
v1,
v2 )
Value:

Definition at line 160 of file gtest_pred_impl.h.

160#define EXPECT_PRED2(pred, v1, v2) \
161 GTEST_PRED2_(pred, v1, v2, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED3

#define EXPECT_PRED3 ( pred,
v1,
v2,
v3 )
Value:

Definition at line 215 of file gtest_pred_impl.h.

215#define EXPECT_PRED3(pred, v1, v2, v3) \
216 GTEST_PRED3_(pred, v1, v2, v3, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED4

#define EXPECT_PRED4 ( pred,
v1,
v2,
v3,
v4 )
Value:
GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_)

Definition at line 277 of file gtest_pred_impl.h.

277#define EXPECT_PRED4(pred, v1, v2, v3, v4) \
278 GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED5

#define EXPECT_PRED5 ( pred,
v1,
v2,
v3,
v4,
v5 )
Value:
GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_)

Definition at line 346 of file gtest_pred_impl.h.

346#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5) \
347 GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED_FORMAT1

#define EXPECT_PRED_FORMAT1 ( pred_format,
v1 )
Value:

Definition at line 110 of file gtest_pred_impl.h.

110#define EXPECT_PRED_FORMAT1(pred_format, v1) \
111 GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED_FORMAT2

#define EXPECT_PRED_FORMAT2 ( pred_format,
v1,
v2 )
Value:

Definition at line 158 of file gtest_pred_impl.h.

158#define EXPECT_PRED_FORMAT2(pred_format, v1, v2) \
159 GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED_FORMAT3

#define EXPECT_PRED_FORMAT3 ( pred_format,
v1,
v2,
v3 )
Value:
GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_NONFATAL_FAILURE_)

Definition at line 213 of file gtest_pred_impl.h.

213#define EXPECT_PRED_FORMAT3(pred_format, v1, v2, v3) \
214 GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED_FORMAT4

#define EXPECT_PRED_FORMAT4 ( pred_format,
v1,
v2,
v3,
v4 )
Value:
GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_)

Definition at line 275 of file gtest_pred_impl.h.

275#define EXPECT_PRED_FORMAT4(pred_format, v1, v2, v3, v4) \
276 GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_)

◆ EXPECT_PRED_FORMAT5

#define EXPECT_PRED_FORMAT5 ( pred_format,
v1,
v2,
v3,
v4,
v5 )
Value:
GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_)

Definition at line 344 of file gtest_pred_impl.h.

344#define EXPECT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5) \
345 GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_)

◆ GTEST_ASSERT_

#define GTEST_ASSERT_ ( expression,
on_failure )
Value:
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
if (const ::testing::AssertionResult gtest_ar = (expression)) \
; \
else \
on_failure(gtest_ar.failure_message())

Definition at line 72 of file gtest_pred_impl.h.

72#define GTEST_ASSERT_(expression, on_failure) \
73 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
74 if (const ::testing::AssertionResult gtest_ar = (expression)) \
75 ; \
76 else \
77 on_failure(gtest_ar.failure_message())

◆ GTEST_PRED1_

#define GTEST_PRED1_ ( pred,
v1,
on_failure )
Value:
#v1, \
pred, \
v1), on_failure)
#define GTEST_ASSERT_(expression, on_failure)
AssertionResult AssertPred1Helper(const char *pred_text, const char *e1, Pred pred, const T1 &v1)

Definition at line 103 of file gtest_pred_impl.h.

103#define GTEST_PRED1_(pred, v1, on_failure)\
104 GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \
105 #v1, \
106 pred, \
107 v1), on_failure)

◆ GTEST_PRED2_

#define GTEST_PRED2_ ( pred,
v1,
v2,
on_failure )
Value:
#v1, \
#v2, \
pred, \
v1, \
v2), on_failure)
AssertionResult AssertPred2Helper(const char *pred_text, const char *e1, const char *e2, Pred pred, const T1 &v1, const T2 &v2)

Definition at line 149 of file gtest_pred_impl.h.

149#define GTEST_PRED2_(pred, v1, v2, on_failure)\
150 GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, \
151 #v1, \
152 #v2, \
153 pred, \
154 v1, \
155 v2), on_failure)

◆ GTEST_PRED3_

#define GTEST_PRED3_ ( pred,
v1,
v2,
v3,
on_failure )
Value:
#v1, \
#v2, \
#v3, \
pred, \
v1, \
v2, \
v3), on_failure)
AssertionResult AssertPred3Helper(const char *pred_text, const char *e1, const char *e2, const char *e3, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3)

Definition at line 202 of file gtest_pred_impl.h.

202#define GTEST_PRED3_(pred, v1, v2, v3, on_failure)\
203 GTEST_ASSERT_(::testing::AssertPred3Helper(#pred, \
204 #v1, \
205 #v2, \
206 #v3, \
207 pred, \
208 v1, \
209 v2, \
210 v3), on_failure)

◆ GTEST_PRED4_

#define GTEST_PRED4_ ( pred,
v1,
v2,
v3,
v4,
on_failure )
Value:
#v1, \
#v2, \
#v3, \
#v4, \
pred, \
v1, \
v2, \
v3, \
v4), on_failure)
AssertionResult AssertPred4Helper(const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)

Definition at line 262 of file gtest_pred_impl.h.

262#define GTEST_PRED4_(pred, v1, v2, v3, v4, on_failure)\
263 GTEST_ASSERT_(::testing::AssertPred4Helper(#pred, \
264 #v1, \
265 #v2, \
266 #v3, \
267 #v4, \
268 pred, \
269 v1, \
270 v2, \
271 v3, \
272 v4), on_failure)

◆ GTEST_PRED5_

#define GTEST_PRED5_ ( pred,
v1,
v2,
v3,
v4,
v5,
on_failure )
Value:
#v1, \
#v2, \
#v3, \
#v4, \
#v5, \
pred, \
v1, \
v2, \
v3, \
v4, \
v5), on_failure)
AssertionResult AssertPred5Helper(const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, const char *e5, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)

Definition at line 329 of file gtest_pred_impl.h.

329#define GTEST_PRED5_(pred, v1, v2, v3, v4, v5, on_failure)\
330 GTEST_ASSERT_(::testing::AssertPred5Helper(#pred, \
331 #v1, \
332 #v2, \
333 #v3, \
334 #v4, \
335 #v5, \
336 pred, \
337 v1, \
338 v2, \
339 v3, \
340 v4, \
341 v5), on_failure)

◆ GTEST_PRED_FORMAT1_

#define GTEST_PRED_FORMAT1_ ( pred_format,
v1,
on_failure )
Value:
GTEST_ASSERT_(pred_format(#v1, v1), \
on_failure)

Definition at line 97 of file gtest_pred_impl.h.

97#define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
98 GTEST_ASSERT_(pred_format(#v1, v1), \
99 on_failure)

◆ GTEST_PRED_FORMAT2_

#define GTEST_PRED_FORMAT2_ ( pred_format,
v1,
v2,
on_failure )
Value:
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
on_failure)

Definition at line 143 of file gtest_pred_impl.h.

143#define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)\
144 GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
145 on_failure)

◆ GTEST_PRED_FORMAT3_

#define GTEST_PRED_FORMAT3_ ( pred_format,
v1,
v2,
v3,
on_failure )
Value:
GTEST_ASSERT_(pred_format(#v1, #v2, #v3, v1, v2, v3), \
on_failure)

Definition at line 196 of file gtest_pred_impl.h.

196#define GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, on_failure)\
197 GTEST_ASSERT_(pred_format(#v1, #v2, #v3, v1, v2, v3), \
198 on_failure)

◆ GTEST_PRED_FORMAT4_

#define GTEST_PRED_FORMAT4_ ( pred_format,
v1,
v2,
v3,
v4,
on_failure )
Value:
GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, v1, v2, v3, v4), \
on_failure)

Definition at line 256 of file gtest_pred_impl.h.

256#define GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, on_failure)\
257 GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, v1, v2, v3, v4), \
258 on_failure)

◆ GTEST_PRED_FORMAT5_

#define GTEST_PRED_FORMAT5_ ( pred_format,
v1,
v2,
v3,
v4,
v5,
on_failure )
Value:
GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, #v5, v1, v2, v3, v4, v5), \
on_failure)

Definition at line 323 of file gtest_pred_impl.h.

323#define GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, on_failure)\
324 GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, #v5, v1, v2, v3, v4, v5), \
325 on_failure)