Lines Matching full:right
769 right, \ argument
774 const typeof(right) __right = (right); \
778 .right_text = #right, \
800 right, \ argument
807 left, op, right, \
815 right, \ argument
822 left, op, right, \
830 right, \ argument
835 const char *__right = (right); \
839 .right_text = #right, \
862 right, \ argument
868 const void *__right = (right); \
873 .right_text = #right, \
955 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
958 * @right: an arbitrary expression that evaluates to a primitive C type.
960 * Sets an expectation that the values that @left and @right evaluate to are
962 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
965 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
966 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
968 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ argument
971 left, ==, right, \
976 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
979 * @right: an arbitrary expression that evaluates to a pointer.
981 * Sets an expectation that the values that @left and @right evaluate to are
983 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
986 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \ argument
987 KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, NULL)
989 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
992 left, ==, right, \
997 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1000 * @right: an arbitrary expression that evaluates to a primitive C type.
1002 * Sets an expectation that the values that @left and @right evaluate to are not
1004 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1007 #define KUNIT_EXPECT_NE(test, left, right) \ argument
1008 KUNIT_EXPECT_NE_MSG(test, left, right, NULL)
1010 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \ argument
1013 left, !=, right, \
1018 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
1021 * @right: an arbitrary expression that evaluates to a pointer.
1023 * Sets an expectation that the values that @left and @right evaluate to are not
1025 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1028 #define KUNIT_EXPECT_PTR_NE(test, left, right) \ argument
1029 KUNIT_EXPECT_PTR_NE_MSG(test, left, right, NULL)
1031 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1034 left, !=, right, \
1039 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1042 * @right: an arbitrary expression that evaluates to a primitive C type.
1045 * value that @right evaluates to. This is semantically equivalent to
1046 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
1049 #define KUNIT_EXPECT_LT(test, left, right) \ argument
1050 KUNIT_EXPECT_LT_MSG(test, left, right, NULL)
1052 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \ argument
1055 left, <, right, \
1060 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
1063 * @right: an arbitrary expression that evaluates to a primitive C type.
1066 * equal to the value that @right evaluates to. Semantically this is equivalent
1067 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
1070 #define KUNIT_EXPECT_LE(test, left, right) \ argument
1071 KUNIT_EXPECT_LE_MSG(test, left, right, NULL)
1073 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ argument
1076 left, <=, right, \
1081 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1084 * @right: an arbitrary expression that evaluates to a primitive C type.
1087 * the value that @right evaluates to. This is semantically equivalent to
1088 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
1091 #define KUNIT_EXPECT_GT(test, left, right) \ argument
1092 KUNIT_EXPECT_GT_MSG(test, left, right, NULL)
1094 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \ argument
1097 left, >, right, \
1102 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1105 * @right: an arbitrary expression that evaluates to a primitive C type.
1108 * the value that @right evaluates to. This is semantically equivalent to
1109 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
1112 #define KUNIT_EXPECT_GE(test, left, right) \ argument
1113 KUNIT_EXPECT_GE_MSG(test, left, right, NULL)
1115 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \ argument
1118 left, >=, right, \
1123 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1126 * @right: an arbitrary expression that evaluates to a null terminated string.
1128 * Sets an expectation that the values that @left and @right evaluate to are
1130 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1133 #define KUNIT_EXPECT_STREQ(test, left, right) \ argument
1134 KUNIT_EXPECT_STREQ_MSG(test, left, right, NULL)
1136 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1139 left, ==, right, \
1144 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1147 * @right: an arbitrary expression that evaluates to a null terminated string.
1149 * Sets an expectation that the values that @left and @right evaluate to are
1151 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1154 #define KUNIT_EXPECT_STRNEQ(test, left, right) \ argument
1155 KUNIT_EXPECT_STRNEQ_MSG(test, left, right, NULL)
1157 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1160 left, !=, right, \
1165 * KUNIT_EXPECT_MEMEQ() - Expects that the first @size bytes of @left and @right are equal.
1168 * @right: An arbitrary expression that evaluates to the specified size.
1171 * Sets an expectation that the values that @left and @right evaluate to are
1173 * KUNIT_EXPECT_TRUE(@test, !memcmp((@left), (@right), (@size))). See
1180 #define KUNIT_EXPECT_MEMEQ(test, left, right, size) \ argument
1181 KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, NULL)
1183 #define KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, fmt, ...) \ argument
1186 left, ==, right, \
1192 * KUNIT_EXPECT_MEMNEQ() - Expects that the first @size bytes of @left and @right are not equal.
1195 * @right: An arbitrary expression that evaluates to the specified size.
1198 * Sets an expectation that the values that @left and @right evaluate to are
1200 * KUNIT_EXPECT_TRUE(@test, memcmp((@left), (@right), (@size))). See
1207 #define KUNIT_EXPECT_MEMNEQ(test, left, right, size) \ argument
1208 KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, NULL)
1210 #define KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, fmt, ...) \ argument
1213 left, !=, right, \
1335 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1338 * @right: an arbitrary expression that evaluates to a primitive C type.
1340 * Sets an assertion that the values that @left and @right evaluate to are
1344 #define KUNIT_ASSERT_EQ(test, left, right) \ argument
1345 KUNIT_ASSERT_EQ_MSG(test, left, right, NULL)
1347 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \ argument
1350 left, ==, right, \
1355 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1358 * @right: an arbitrary expression that evaluates to a pointer.
1360 * Sets an assertion that the values that @left and @right evaluate to are
1364 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \ argument
1365 KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, NULL)
1367 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1370 left, ==, right, \
1375 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1378 * @right: an arbitrary expression that evaluates to a primitive C type.
1380 * Sets an assertion that the values that @left and @right evaluate to are not
1384 #define KUNIT_ASSERT_NE(test, left, right) \ argument
1385 KUNIT_ASSERT_NE_MSG(test, left, right, NULL)
1387 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \ argument
1390 left, !=, right, \
1395 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1396 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1399 * @right: an arbitrary expression that evaluates to a pointer.
1401 * Sets an assertion that the values that @left and @right evaluate to are not
1405 #define KUNIT_ASSERT_PTR_NE(test, left, right) \ argument
1406 KUNIT_ASSERT_PTR_NE_MSG(test, left, right, NULL)
1408 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1411 left, !=, right, \
1415 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1418 * @right: an arbitrary expression that evaluates to a primitive C type.
1421 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1425 #define KUNIT_ASSERT_LT(test, left, right) \ argument
1426 KUNIT_ASSERT_LT_MSG(test, left, right, NULL)
1428 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ argument
1431 left, <, right, \
1435 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1438 * @right: an arbitrary expression that evaluates to a primitive C type.
1441 * equal to the value that @right evaluates to. This is the same as
1445 #define KUNIT_ASSERT_LE(test, left, right) \ argument
1446 KUNIT_ASSERT_LE_MSG(test, left, right, NULL)
1448 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \ argument
1451 left, <=, right, \
1456 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1459 * @right: an arbitrary expression that evaluates to a primitive C type.
1462 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1466 #define KUNIT_ASSERT_GT(test, left, right) \ argument
1467 KUNIT_ASSERT_GT_MSG(test, left, right, NULL)
1469 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ argument
1472 left, >, right, \
1477 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1480 * @right: an arbitrary expression that evaluates to a primitive C type.
1483 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1487 #define KUNIT_ASSERT_GE(test, left, right) \ argument
1488 KUNIT_ASSERT_GE_MSG(test, left, right, NULL)
1490 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \ argument
1493 left, >=, right, \
1498 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1501 * @right: an arbitrary expression that evaluates to a null terminated string.
1503 * Sets an assertion that the values that @left and @right evaluate to are
1507 #define KUNIT_ASSERT_STREQ(test, left, right) \ argument
1508 KUNIT_ASSERT_STREQ_MSG(test, left, right, NULL)
1510 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1513 left, ==, right, \
1518 * KUNIT_ASSERT_STRNEQ() - An assertion that strings @left and @right are not equal.
1521 * @right: an arbitrary expression that evaluates to a null terminated string.
1523 * Sets an assertion that the values that @left and @right evaluate to are
1525 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1528 #define KUNIT_ASSERT_STRNEQ(test, left, right) \ argument
1529 KUNIT_ASSERT_STRNEQ_MSG(test, left, right, NULL)
1531 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1534 left, !=, right, \
1539 * KUNIT_ASSERT_MEMEQ() - Asserts that the first @size bytes of @left and @right are equal.
1542 * @right: An arbitrary expression that evaluates to the specified size.
1545 * Sets an assertion that the values that @left and @right evaluate to are
1547 * KUNIT_ASSERT_TRUE(@test, !memcmp((@left), (@right), (@size))). See
1554 #define KUNIT_ASSERT_MEMEQ(test, left, right, size) \ argument
1555 KUNIT_ASSERT_MEMEQ_MSG(test, left, right, size, NULL)
1557 #define KUNIT_ASSERT_MEMEQ_MSG(test, left, right, size, fmt, ...) \ argument
1560 left, ==, right, \
1566 * KUNIT_ASSERT_MEMNEQ() - Asserts that the first @size bytes of @left and @right are not equal.
1569 * @right: An arbitrary expression that evaluates to the specified size.
1572 * Sets an assertion that the values that @left and @right evaluate to are
1574 * KUNIT_ASSERT_TRUE(@test, memcmp((@left), (@right), (@size))). See
1581 #define KUNIT_ASSERT_MEMNEQ(test, left, right, size) \ argument
1582 KUNIT_ASSERT_MEMNEQ_MSG(test, left, right, size, NULL)
1584 #define KUNIT_ASSERT_MEMNEQ_MSG(test, left, right, size, fmt, ...) \ argument
1587 left, !=, right, \