Lines Matching full:right
742 right, \ argument
747 typeof(right) __right = (right); \
758 #right, \
769 right, \ argument
776 left, ==, right, \
785 right, \ argument
792 left, !=, right, \
801 right, \ argument
808 left, <, right, \
817 right, \ argument
824 left, <=, right, \
833 right, \ argument
840 left, >, right, \
849 right, \ argument
856 left, >=, right, \
860 #define KUNIT_BINARY_EQ_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
866 right, \
870 #define KUNIT_BINARY_EQ_ASSERTION(test, assert_type, left, right) \ argument
874 right, \
880 right, \ argument
888 right, \
892 #define KUNIT_BINARY_PTR_EQ_ASSERTION(test, assert_type, left, right) \ argument
896 right, \
899 #define KUNIT_BINARY_NE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
905 right, \
909 #define KUNIT_BINARY_NE_ASSERTION(test, assert_type, left, right) \ argument
913 right, \
919 right, \ argument
927 right, \
931 #define KUNIT_BINARY_PTR_NE_ASSERTION(test, assert_type, left, right) \ argument
935 right, \
938 #define KUNIT_BINARY_LT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
944 right, \
948 #define KUNIT_BINARY_LT_ASSERTION(test, assert_type, left, right) \ argument
952 right, \
958 right, \ argument
966 right, \
970 #define KUNIT_BINARY_PTR_LT_ASSERTION(test, assert_type, left, right) \ argument
974 right, \
977 #define KUNIT_BINARY_LE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
983 right, \
987 #define KUNIT_BINARY_LE_ASSERTION(test, assert_type, left, right) \ argument
991 right, \
997 right, \ argument
1005 right, \
1009 #define KUNIT_BINARY_PTR_LE_ASSERTION(test, assert_type, left, right) \ argument
1013 right, \
1016 #define KUNIT_BINARY_GT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1022 right, \
1026 #define KUNIT_BINARY_GT_ASSERTION(test, assert_type, left, right) \ argument
1030 right, \
1036 right, \ argument
1044 right, \
1048 #define KUNIT_BINARY_PTR_GT_ASSERTION(test, assert_type, left, right) \ argument
1052 right, \
1055 #define KUNIT_BINARY_GE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ argument
1061 right, \
1065 #define KUNIT_BINARY_GE_ASSERTION(test, assert_type, left, right) \ argument
1069 right, \
1075 right, \ argument
1083 right, \
1087 #define KUNIT_BINARY_PTR_GE_ASSERTION(test, assert_type, left, right) \ argument
1091 right, \
1098 right, \ argument
1103 typeof(right) __right = (right); \
1113 #right, \
1122 right, \ argument
1127 left, ==, right, \
1131 #define KUNIT_BINARY_STR_EQ_ASSERTION(test, assert_type, left, right) \ argument
1135 right, \
1141 right, \ argument
1146 left, !=, right, \
1150 #define KUNIT_BINARY_STR_NE_ASSERTION(test, assert_type, left, right) \ argument
1154 right, \
1223 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
1226 * @right: an arbitrary expression that evaluates to a primitive C type.
1228 * Sets an expectation that the values that @left and @right evaluate to are
1230 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
1233 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
1234 KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1236 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ argument
1240 right, \
1245 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
1248 * @right: an arbitrary expression that evaluates to a pointer.
1250 * Sets an expectation that the values that @left and @right evaluate to are
1252 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
1255 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \ argument
1259 right)
1261 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1265 right, \
1270 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1273 * @right: an arbitrary expression that evaluates to a primitive C type.
1275 * Sets an expectation that the values that @left and @right evaluate to are not
1277 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1280 #define KUNIT_EXPECT_NE(test, left, right) \ argument
1281 KUNIT_BINARY_NE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1283 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \ argument
1287 right, \
1292 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
1295 * @right: an arbitrary expression that evaluates to a pointer.
1297 * Sets an expectation that the values that @left and @right evaluate to are not
1299 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
1302 #define KUNIT_EXPECT_PTR_NE(test, left, right) \ argument
1306 right)
1308 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1312 right, \
1317 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1320 * @right: an arbitrary expression that evaluates to a primitive C type.
1323 * value that @right evaluates to. This is semantically equivalent to
1324 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
1327 #define KUNIT_EXPECT_LT(test, left, right) \ argument
1328 KUNIT_BINARY_LT_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1330 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \ argument
1334 right, \
1339 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
1342 * @right: an arbitrary expression that evaluates to a primitive C type.
1345 * equal to the value that @right evaluates to. Semantically this is equivalent
1346 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
1349 #define KUNIT_EXPECT_LE(test, left, right) \ argument
1350 KUNIT_BINARY_LE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1352 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ argument
1356 right, \
1361 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1364 * @right: an arbitrary expression that evaluates to a primitive C type.
1367 * the value that @right evaluates to. This is semantically equivalent to
1368 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
1371 #define KUNIT_EXPECT_GT(test, left, right) \ argument
1372 KUNIT_BINARY_GT_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1374 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \ argument
1378 right, \
1383 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1386 * @right: an arbitrary expression that evaluates to a primitive C type.
1389 * the value that @right evaluates to. This is semantically equivalent to
1390 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
1393 #define KUNIT_EXPECT_GE(test, left, right) \ argument
1394 KUNIT_BINARY_GE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1396 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \ argument
1400 right, \
1405 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1408 * @right: an arbitrary expression that evaluates to a null terminated string.
1410 * Sets an expectation that the values that @left and @right evaluate to are
1412 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1415 #define KUNIT_EXPECT_STREQ(test, left, right) \ argument
1416 KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1418 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1422 right, \
1427 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1430 * @right: an arbitrary expression that evaluates to a null terminated string.
1432 * Sets an expectation that the values that @left and @right evaluate to are
1434 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1437 #define KUNIT_EXPECT_STRNEQ(test, left, right) \ argument
1438 KUNIT_BINARY_STR_NE_ASSERTION(test, KUNIT_EXPECTATION, left, right)
1440 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1444 right, \
1512 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1515 * @right: an arbitrary expression that evaluates to a primitive C type.
1517 * Sets an assertion that the values that @left and @right evaluate to are
1521 #define KUNIT_ASSERT_EQ(test, left, right) \ argument
1522 KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1524 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \ argument
1528 right, \
1533 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1536 * @right: an arbitrary expression that evaluates to a pointer.
1538 * Sets an assertion that the values that @left and @right evaluate to are
1542 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \ argument
1543 KUNIT_BINARY_PTR_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1545 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1549 right, \
1554 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1557 * @right: an arbitrary expression that evaluates to a primitive C type.
1559 * Sets an assertion that the values that @left and @right evaluate to are not
1563 #define KUNIT_ASSERT_NE(test, left, right) \ argument
1564 KUNIT_BINARY_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1566 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \ argument
1570 right, \
1575 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1576 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1579 * @right: an arbitrary expression that evaluates to a pointer.
1581 * Sets an assertion that the values that @left and @right evaluate to are not
1585 #define KUNIT_ASSERT_PTR_NE(test, left, right) \ argument
1586 KUNIT_BINARY_PTR_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1588 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1592 right, \
1596 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1599 * @right: an arbitrary expression that evaluates to a primitive C type.
1602 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1606 #define KUNIT_ASSERT_LT(test, left, right) \ argument
1607 KUNIT_BINARY_LT_ASSERTION(test, KUNIT_ASSERTION, left, right)
1609 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ argument
1613 right, \
1617 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1620 * @right: an arbitrary expression that evaluates to a primitive C type.
1623 * equal to the value that @right evaluates to. This is the same as
1627 #define KUNIT_ASSERT_LE(test, left, right) \ argument
1628 KUNIT_BINARY_LE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1630 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \ argument
1634 right, \
1639 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1642 * @right: an arbitrary expression that evaluates to a primitive C type.
1645 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1649 #define KUNIT_ASSERT_GT(test, left, right) \ argument
1650 KUNIT_BINARY_GT_ASSERTION(test, KUNIT_ASSERTION, left, right)
1652 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ argument
1656 right, \
1661 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1664 * @right: an arbitrary expression that evaluates to a primitive C type.
1667 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1671 #define KUNIT_ASSERT_GE(test, left, right) \ argument
1672 KUNIT_BINARY_GE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1674 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \ argument
1678 right, \
1683 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1686 * @right: an arbitrary expression that evaluates to a null terminated string.
1688 * Sets an assertion that the values that @left and @right evaluate to are
1692 #define KUNIT_ASSERT_STREQ(test, left, right) \ argument
1693 KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_ASSERTION, left, right)
1695 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1699 right, \
1704 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1707 * @right: an arbitrary expression that evaluates to a null terminated string.
1709 * Sets an expectation that the values that @left and @right evaluate to are
1711 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1714 #define KUNIT_ASSERT_STRNEQ(test, left, right) \ argument
1715 KUNIT_BINARY_STR_NE_ASSERTION(test, KUNIT_ASSERTION, left, right)
1717 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1721 right, \