Lines Matching full:left
860 left, \ argument
866 typeof(left) __left = (left); \
875 #left, \
887 left, \ argument
895 left, ==, right, \
903 left, \ argument
911 left, !=, right, \
919 left, \ argument
927 left, <, right, \
935 left, \ argument
943 left, <=, right, \
951 left, \ argument
959 left, >, right, \
967 left, \ argument
975 left, >=, right, \
979 #define KUNIT_BINARY_EQ_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
984 left, \
989 #define KUNIT_BINARY_EQ_ASSERTION(test, assert_type, left, right) \ argument
992 left, \
998 left, \ argument
1006 left, \
1011 #define KUNIT_BINARY_PTR_EQ_ASSERTION(test, assert_type, left, right) \ argument
1014 left, \
1018 #define KUNIT_BINARY_NE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1023 left, \
1028 #define KUNIT_BINARY_NE_ASSERTION(test, assert_type, left, right) \ argument
1031 left, \
1037 left, \ argument
1045 left, \
1050 #define KUNIT_BINARY_PTR_NE_ASSERTION(test, assert_type, left, right) \ argument
1053 left, \
1057 #define KUNIT_BINARY_LT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1062 left, \
1067 #define KUNIT_BINARY_LT_ASSERTION(test, assert_type, left, right) \ argument
1070 left, \
1076 left, \ argument
1084 left, \
1089 #define KUNIT_BINARY_PTR_LT_ASSERTION(test, assert_type, left, right) \ argument
1092 left, \
1096 #define KUNIT_BINARY_LE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1101 left, \
1106 #define KUNIT_BINARY_LE_ASSERTION(test, assert_type, left, right) \ argument
1109 left, \
1115 left, \ argument
1123 left, \
1128 #define KUNIT_BINARY_PTR_LE_ASSERTION(test, assert_type, left, right) \ argument
1131 left, \
1135 #define KUNIT_BINARY_GT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1140 left, \
1145 #define KUNIT_BINARY_GT_ASSERTION(test, assert_type, left, right) \ argument
1148 left, \
1154 left, \ argument
1162 left, \
1167 #define KUNIT_BINARY_PTR_GT_ASSERTION(test, assert_type, left, right) \ argument
1170 left, \
1174 #define KUNIT_BINARY_GE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1179 left, \
1184 #define KUNIT_BINARY_GE_ASSERTION(test, assert_type, left, right) \ argument
1187 left, \
1193 left, \ argument
1201 left, \
1206 #define KUNIT_BINARY_PTR_GE_ASSERTION(test, assert_type, left, right) \ argument
1209 left, \
1215 left, \ argument
1221 const char *__left = (left); \
1230 #left, \
1240 left, \ argument
1246 left, ==, right, \
1250 #define KUNIT_BINARY_STR_EQ_ASSERTION(test, assert_type, left, right) \ argument
1253 left, \
1259 left, \ argument
1265 left, !=, right, \
1269 #define KUNIT_BINARY_STR_NE_ASSERTION(test, assert_type, left, right) \ argument
1272 left, \
1342 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
1344 * @left: 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
1358 left, \
1364 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
1366 * @left: 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
1377 left, \
1380 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1383 left, \
1389 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1391 * @left: 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
1405 left, \
1411 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
1413 * @left: 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
1424 left, \
1427 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1430 left, \
1436 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1438 * @left: an arbitrary expression that evaluates to a primitive C type.
1441 * Sets an expectation that the value that @left evaluates to is less than the
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
1452 left, \
1458 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
1460 * @left: an arbitrary expression that evaluates to a primitive C type.
1463 * Sets an expectation that the value that @left evaluates to is less than or
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
1474 left, \
1480 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1482 * @left: an arbitrary expression that evaluates to a primitive C type.
1485 * Sets an expectation that the value that @left evaluates to is greater than
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
1496 left, \
1502 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1504 * @left: an arbitrary expression that evaluates to a primitive C type.
1507 * Sets an expectation that the value that @left evaluates to is greater than
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
1518 left, \
1524 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1526 * @left: 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
1540 left, \
1546 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1548 * @left: 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
1562 left, \
1631 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1633 * @left: 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
1646 left, \
1652 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1654 * @left: 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
1667 left, \
1673 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1675 * @left: 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
1688 left, \
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.
1697 * @left: 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
1710 left, \
1715 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1717 * @left: an arbitrary expression that evaluates to a primitive C type.
1720 * Sets an assertion that the value that @left evaluates to is less than the
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
1731 left, \
1736 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1738 * @left: an arbitrary expression that evaluates to a primitive C type.
1741 * Sets an assertion that the value that @left evaluates to is less than or
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
1752 left, \
1758 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1760 * @left: an arbitrary expression that evaluates to a primitive C type.
1763 * Sets an assertion that the value that @left evaluates to is greater than the
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
1774 left, \
1780 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1782 * @left: an arbitrary expression that evaluates to a primitive C type.
1785 * Sets an assertion that the value that @left evaluates to is greater than the
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
1796 left, \
1802 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1804 * @left: 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
1817 left, \
1823 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1825 * @left: 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
1839 left, \