Lines Matching full:right
862 right, \ argument
867 typeof(right) __right = (right); \
877 #right, \
888 right, \ argument
895 left, ==, right, \
904 right, \ argument
911 left, !=, right, \
920 right, \ argument
927 left, <, right, \
936 right, \ argument
943 left, <=, right, \
952 right, \ argument
959 left, >, right, \
968 right, \ argument
975 left, >=, right, \
979 #define KUNIT_BINARY_EQ_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
985 right, \
989 #define KUNIT_BINARY_EQ_ASSERTION(test, assert_type, left, right) \ argument
993 right, \
999 right, \ argument
1007 right, \
1011 #define KUNIT_BINARY_PTR_EQ_ASSERTION(test, assert_type, left, right) \ argument
1015 right, \
1018 #define KUNIT_BINARY_NE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1024 right, \
1028 #define KUNIT_BINARY_NE_ASSERTION(test, assert_type, left, right) \ argument
1032 right, \
1038 right, \ argument
1046 right, \
1050 #define KUNIT_BINARY_PTR_NE_ASSERTION(test, assert_type, left, right) \ argument
1054 right, \
1057 #define KUNIT_BINARY_LT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1063 right, \
1067 #define KUNIT_BINARY_LT_ASSERTION(test, assert_type, left, right) \ argument
1071 right, \
1077 right, \ argument
1085 right, \
1089 #define KUNIT_BINARY_PTR_LT_ASSERTION(test, assert_type, left, right) \ argument
1093 right, \
1096 #define KUNIT_BINARY_LE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1102 right, \
1106 #define KUNIT_BINARY_LE_ASSERTION(test, assert_type, left, right) \ argument
1110 right, \
1116 right, \ argument
1124 right, \
1128 #define KUNIT_BINARY_PTR_LE_ASSERTION(test, assert_type, left, right) \ argument
1132 right, \
1135 #define KUNIT_BINARY_GT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1141 right, \
1145 #define KUNIT_BINARY_GT_ASSERTION(test, assert_type, left, right) \ argument
1149 right, \
1155 right, \ argument
1163 right, \
1167 #define KUNIT_BINARY_PTR_GT_ASSERTION(test, assert_type, left, right) \ argument
1171 right, \
1174 #define KUNIT_BINARY_GE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1180 right, \
1184 #define KUNIT_BINARY_GE_ASSERTION(test, assert_type, left, right) \ argument
1188 right, \
1194 right, \ argument
1202 right, \
1206 #define KUNIT_BINARY_PTR_GE_ASSERTION(test, assert_type, left, right) \ argument
1210 right, \
1217 right, \ argument
1222 const char *__right = (right); \
1232 #right, \
1241 right, \ argument
1246 left, ==, right, \
1250 #define KUNIT_BINARY_STR_EQ_ASSERTION(test, assert_type, left, right) \ argument
1254 right, \
1260 right, \ argument
1265 left, !=, right, \
1269 #define KUNIT_BINARY_STR_NE_ASSERTION(test, assert_type, left, right) \ argument
1273 right, \
1342 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
1345 * @right: an arbitrary expression that evaluates to a primitive C type.
1347 * Sets an expectation that the values that @left and @right evaluate to are
1349 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
1352 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
1353 KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1355 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ argument
1359 right, \
1364 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
1367 * @right: an arbitrary expression that evaluates to a pointer.
1369 * Sets an expectation that the values that @left and @right evaluate to are
1371 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
1374 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \ argument
1378 right)
1380 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1384 right, \
1389 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1392 * @right: an arbitrary expression that evaluates to a primitive C type.
1394 * Sets an expectation that the values that @left and @right evaluate to are not
1396 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1399 #define KUNIT_EXPECT_NE(test, left, right) \ argument
1400 KUNIT_BINARY_NE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1402 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \ argument
1406 right, \
1411 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
1414 * @right: an arbitrary expression that evaluates to a pointer.
1416 * Sets an expectation that the values that @left and @right evaluate to are not
1418 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1421 #define KUNIT_EXPECT_PTR_NE(test, left, right) \ argument
1425 right)
1427 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1431 right, \
1436 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1439 * @right: an arbitrary expression that evaluates to a primitive C type.
1442 * value that @right evaluates to. This is semantically equivalent to
1443 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
1446 #define KUNIT_EXPECT_LT(test, left, right) \ argument
1447 KUNIT_BINARY_LT_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1449 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \ argument
1453 right, \
1458 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
1461 * @right: an arbitrary expression that evaluates to a primitive C type.
1464 * equal to the value that @right evaluates to. Semantically this is equivalent
1465 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
1468 #define KUNIT_EXPECT_LE(test, left, right) \ argument
1469 KUNIT_BINARY_LE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1471 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ argument
1475 right, \
1480 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1483 * @right: an arbitrary expression that evaluates to a primitive C type.
1486 * the value that @right evaluates to. This is semantically equivalent to
1487 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
1490 #define KUNIT_EXPECT_GT(test, left, right) \ argument
1491 KUNIT_BINARY_GT_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1493 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \ argument
1497 right, \
1502 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1505 * @right: an arbitrary expression that evaluates to a primitive C type.
1508 * the value that @right evaluates to. This is semantically equivalent to
1509 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
1512 #define KUNIT_EXPECT_GE(test, left, right) \ argument
1513 KUNIT_BINARY_GE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1515 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \ argument
1519 right, \
1524 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1527 * @right: an arbitrary expression that evaluates to a null terminated string.
1529 * Sets an expectation that the values that @left and @right evaluate to are
1531 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1534 #define KUNIT_EXPECT_STREQ(test, left, right) \ argument
1535 KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1537 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1541 right, \
1546 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1549 * @right: an arbitrary expression that evaluates to a null terminated string.
1551 * Sets an expectation that the values that @left and @right evaluate to are
1553 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1556 #define KUNIT_EXPECT_STRNEQ(test, left, right) \ argument
1557 KUNIT_BINARY_STR_NE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1559 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1563 right, \
1631 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1634 * @right: an arbitrary expression that evaluates to a primitive C type.
1636 * Sets an assertion that the values that @left and @right evaluate to are
1640 #define KUNIT_ASSERT_EQ(test, left, right) \ argument
1641 KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1643 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \ argument
1647 right, \
1652 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1655 * @right: an arbitrary expression that evaluates to a pointer.
1657 * Sets an assertion that the values that @left and @right evaluate to are
1661 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \ argument
1662 KUNIT_BINARY_PTR_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1664 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1668 right, \
1673 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1676 * @right: an arbitrary expression that evaluates to a primitive C type.
1678 * Sets an assertion that the values that @left and @right evaluate to are not
1682 #define KUNIT_ASSERT_NE(test, left, right) \ argument
1683 KUNIT_BINARY_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1685 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \ argument
1689 right, \
1694 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1695 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1698 * @right: an arbitrary expression that evaluates to a pointer.
1700 * Sets an assertion that the values that @left and @right evaluate to are not
1704 #define KUNIT_ASSERT_PTR_NE(test, left, right) \ argument
1705 KUNIT_BINARY_PTR_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1707 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1711 right, \
1715 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1718 * @right: an arbitrary expression that evaluates to a primitive C type.
1721 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1725 #define KUNIT_ASSERT_LT(test, left, right) \ argument
1726 KUNIT_BINARY_LT_ASSERTION(test, KUNIT_ASSERTION, left, right)
1728 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ argument
1732 right, \
1736 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1739 * @right: an arbitrary expression that evaluates to a primitive C type.
1742 * equal to the value that @right evaluates to. This is the same as
1746 #define KUNIT_ASSERT_LE(test, left, right) \ argument
1747 KUNIT_BINARY_LE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1749 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \ argument
1753 right, \
1758 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1761 * @right: an arbitrary expression that evaluates to a primitive C type.
1764 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1768 #define KUNIT_ASSERT_GT(test, left, right) \ argument
1769 KUNIT_BINARY_GT_ASSERTION(test, KUNIT_ASSERTION, left, right)
1771 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ argument
1775 right, \
1780 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1783 * @right: an arbitrary expression that evaluates to a primitive C type.
1786 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1790 #define KUNIT_ASSERT_GE(test, left, right) \ argument
1791 KUNIT_BINARY_GE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1793 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \ argument
1797 right, \
1802 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1805 * @right: an arbitrary expression that evaluates to a null terminated string.
1807 * Sets an assertion that the values that @left and @right evaluate to are
1811 #define KUNIT_ASSERT_STREQ(test, left, right) \ argument
1812 KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1814 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1818 right, \
1823 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1826 * @right: an arbitrary expression that evaluates to a null terminated string.
1828 * Sets an expectation that the values that @left and @right evaluate to are
1830 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1833 #define KUNIT_ASSERT_STRNEQ(test, left, right) \ argument
1834 KUNIT_BINARY_STR_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1836 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1840 right, \