Lines Matching full:right
682 right, \ argument
687 const typeof(right) __right = (right); \
691 .right_text = #right, \
712 right, \ argument
719 left, op, right, \
727 right, \ argument
734 left, op, right, \
742 right, \ argument
747 const char *__right = (right); \
751 .right_text = #right, \
773 right, \ argument
779 const void *__right = (right); \
784 .right_text = #right, \
864 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
867 * @right: an arbitrary expression that evaluates to a primitive C type.
869 * Sets an expectation that the values that @left and @right evaluate to are
871 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
874 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
875 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
877 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ argument
880 left, ==, right, \
885 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
888 * @right: an arbitrary expression that evaluates to a pointer.
890 * Sets an expectation that the values that @left and @right evaluate to are
892 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
895 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \ argument
896 KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, NULL)
898 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
901 left, ==, right, \
906 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
909 * @right: an arbitrary expression that evaluates to a primitive C type.
911 * Sets an expectation that the values that @left and @right evaluate to are not
913 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
916 #define KUNIT_EXPECT_NE(test, left, right) \ argument
917 KUNIT_EXPECT_NE_MSG(test, left, right, NULL)
919 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \ argument
922 left, !=, right, \
927 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
930 * @right: an arbitrary expression that evaluates to a pointer.
932 * Sets an expectation that the values that @left and @right evaluate to are not
934 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
937 #define KUNIT_EXPECT_PTR_NE(test, left, right) \ argument
938 KUNIT_EXPECT_PTR_NE_MSG(test, left, right, NULL)
940 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
943 left, !=, right, \
948 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
951 * @right: an arbitrary expression that evaluates to a primitive C type.
954 * value that @right evaluates to. This is semantically equivalent to
955 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
958 #define KUNIT_EXPECT_LT(test, left, right) \ argument
959 KUNIT_EXPECT_LT_MSG(test, left, right, NULL)
961 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \ argument
964 left, <, right, \
969 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
972 * @right: an arbitrary expression that evaluates to a primitive C type.
975 * equal to the value that @right evaluates to. Semantically this is equivalent
976 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
979 #define KUNIT_EXPECT_LE(test, left, right) \ argument
980 KUNIT_EXPECT_LE_MSG(test, left, right, NULL)
982 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ argument
985 left, <=, right, \
990 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
993 * @right: an arbitrary expression that evaluates to a primitive C type.
996 * the value that @right evaluates to. This is semantically equivalent to
997 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
1000 #define KUNIT_EXPECT_GT(test, left, right) \ argument
1001 KUNIT_EXPECT_GT_MSG(test, left, right, NULL)
1003 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \ argument
1006 left, >, right, \
1011 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1014 * @right: an arbitrary expression that evaluates to a primitive C type.
1017 * the value that @right evaluates to. This is semantically equivalent to
1018 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
1021 #define KUNIT_EXPECT_GE(test, left, right) \ argument
1022 KUNIT_EXPECT_GE_MSG(test, left, right, NULL)
1024 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \ argument
1027 left, >=, right, \
1032 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1035 * @right: an arbitrary expression that evaluates to a null terminated string.
1037 * Sets an expectation that the values that @left and @right evaluate to are
1039 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1042 #define KUNIT_EXPECT_STREQ(test, left, right) \ argument
1043 KUNIT_EXPECT_STREQ_MSG(test, left, right, NULL)
1045 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1048 left, ==, right, \
1053 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1056 * @right: an arbitrary expression that evaluates to a null terminated string.
1058 * Sets an expectation that the values that @left and @right evaluate to are
1060 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1063 #define KUNIT_EXPECT_STRNEQ(test, left, right) \ argument
1064 KUNIT_EXPECT_STRNEQ_MSG(test, left, right, NULL)
1066 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1069 left, !=, right, \
1074 * KUNIT_EXPECT_MEMEQ() - Expects that the first @size bytes of @left and @right are equal.
1077 * @right: An arbitrary expression that evaluates to the specified size.
1080 * Sets an expectation that the values that @left and @right evaluate to are
1082 * KUNIT_EXPECT_TRUE(@test, !memcmp((@left), (@right), (@size))). See
1089 #define KUNIT_EXPECT_MEMEQ(test, left, right, size) \ argument
1090 KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, NULL)
1092 #define KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, fmt, ...) \ argument
1095 left, ==, right, \
1101 * KUNIT_EXPECT_MEMNEQ() - Expects that the first @size bytes of @left and @right are not equal.
1104 * @right: An arbitrary expression that evaluates to the specified size.
1107 * Sets an expectation that the values that @left and @right evaluate to are
1109 * KUNIT_EXPECT_TRUE(@test, memcmp((@left), (@right), (@size))). See
1116 #define KUNIT_EXPECT_MEMNEQ(test, left, right, size) \ argument
1117 KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, NULL)
1119 #define KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, fmt, ...) \ argument
1122 left, !=, right, \
1233 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1236 * @right: an arbitrary expression that evaluates to a primitive C type.
1238 * Sets an assertion that the values that @left and @right evaluate to are
1242 #define KUNIT_ASSERT_EQ(test, left, right) \ argument
1243 KUNIT_ASSERT_EQ_MSG(test, left, right, NULL)
1245 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \ argument
1248 left, ==, right, \
1253 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1256 * @right: an arbitrary expression that evaluates to a pointer.
1258 * Sets an assertion that the values that @left and @right evaluate to are
1262 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \ argument
1263 KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, NULL)
1265 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1268 left, ==, right, \
1273 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1276 * @right: an arbitrary expression that evaluates to a primitive C type.
1278 * Sets an assertion that the values that @left and @right evaluate to are not
1282 #define KUNIT_ASSERT_NE(test, left, right) \ argument
1283 KUNIT_ASSERT_NE_MSG(test, left, right, NULL)
1285 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \ argument
1288 left, !=, right, \
1293 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1294 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1297 * @right: an arbitrary expression that evaluates to a pointer.
1299 * Sets an assertion that the values that @left and @right evaluate to are not
1303 #define KUNIT_ASSERT_PTR_NE(test, left, right) \ argument
1304 KUNIT_ASSERT_PTR_NE_MSG(test, left, right, NULL)
1306 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1309 left, !=, right, \
1313 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1316 * @right: an arbitrary expression that evaluates to a primitive C type.
1319 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1323 #define KUNIT_ASSERT_LT(test, left, right) \ argument
1324 KUNIT_ASSERT_LT_MSG(test, left, right, NULL)
1326 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ argument
1329 left, <, right, \
1333 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1336 * @right: an arbitrary expression that evaluates to a primitive C type.
1339 * equal to the value that @right evaluates to. This is the same as
1343 #define KUNIT_ASSERT_LE(test, left, right) \ argument
1344 KUNIT_ASSERT_LE_MSG(test, left, right, NULL)
1346 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \ argument
1349 left, <=, right, \
1354 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1357 * @right: an arbitrary expression that evaluates to a primitive C type.
1360 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1364 #define KUNIT_ASSERT_GT(test, left, right) \ argument
1365 KUNIT_ASSERT_GT_MSG(test, left, right, NULL)
1367 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ argument
1370 left, >, right, \
1375 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1378 * @right: an arbitrary expression that evaluates to a primitive C type.
1381 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1385 #define KUNIT_ASSERT_GE(test, left, right) \ argument
1386 KUNIT_ASSERT_GE_MSG(test, left, right, NULL)
1388 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \ argument
1391 left, >=, right, \
1396 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1399 * @right: an arbitrary expression that evaluates to a null terminated string.
1401 * Sets an assertion that the values that @left and @right evaluate to are
1405 #define KUNIT_ASSERT_STREQ(test, left, right) \ argument
1406 KUNIT_ASSERT_STREQ_MSG(test, left, right, NULL)
1408 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1411 left, ==, right, \
1416 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1419 * @right: an arbitrary expression that evaluates to a null terminated string.
1421 * Sets an expectation that the values that @left and @right evaluate to are
1423 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1426 #define KUNIT_ASSERT_STRNEQ(test, left, right) \ argument
1427 KUNIT_ASSERT_STRNEQ_MSG(test, left, right, NULL)
1429 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1432 left, !=, right, \