Lines Matching full:right
574 right, \ argument
579 const typeof(right) __right = (right); \
583 .right_text = #right, \
604 right, \ argument
611 left, op, right, \
619 right, \ argument
626 left, op, right, \
634 right, \ argument
639 const char *__right = (right); \
643 .right_text = #right, \
722 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
725 * @right: an arbitrary expression that evaluates to a primitive C type.
727 * Sets an expectation that the values that @left and @right evaluate to are
729 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
732 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
733 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
735 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ argument
738 left, ==, right, \
743 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
746 * @right: an arbitrary expression that evaluates to a pointer.
748 * Sets an expectation that the values that @left and @right evaluate to are
750 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
753 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \ argument
754 KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, NULL)
756 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
759 left, ==, right, \
764 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
767 * @right: an arbitrary expression that evaluates to a primitive C type.
769 * Sets an expectation that the values that @left and @right evaluate to are not
771 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
774 #define KUNIT_EXPECT_NE(test, left, right) \ argument
775 KUNIT_EXPECT_NE_MSG(test, left, right, NULL)
777 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \ argument
780 left, !=, right, \
785 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
788 * @right: an arbitrary expression that evaluates to a pointer.
790 * Sets an expectation that the values that @left and @right evaluate to are not
792 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
795 #define KUNIT_EXPECT_PTR_NE(test, left, right) \ argument
796 KUNIT_EXPECT_PTR_NE_MSG(test, left, right, NULL)
798 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
801 left, !=, right, \
806 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
809 * @right: an arbitrary expression that evaluates to a primitive C type.
812 * value that @right evaluates to. This is semantically equivalent to
813 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
816 #define KUNIT_EXPECT_LT(test, left, right) \ argument
817 KUNIT_EXPECT_LT_MSG(test, left, right, NULL)
819 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \ argument
822 left, <, right, \
827 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
830 * @right: an arbitrary expression that evaluates to a primitive C type.
833 * equal to the value that @right evaluates to. Semantically this is equivalent
834 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
837 #define KUNIT_EXPECT_LE(test, left, right) \ argument
838 KUNIT_EXPECT_LE_MSG(test, left, right, NULL)
840 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ argument
843 left, <=, right, \
848 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
851 * @right: an arbitrary expression that evaluates to a primitive C type.
854 * the value that @right evaluates to. This is semantically equivalent to
855 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
858 #define KUNIT_EXPECT_GT(test, left, right) \ argument
859 KUNIT_EXPECT_GT_MSG(test, left, right, NULL)
861 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \ argument
864 left, >, right, \
869 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
872 * @right: an arbitrary expression that evaluates to a primitive C type.
875 * the value that @right evaluates to. This is semantically equivalent to
876 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
879 #define KUNIT_EXPECT_GE(test, left, right) \ argument
880 KUNIT_EXPECT_GE_MSG(test, left, right, NULL)
882 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \ argument
885 left, >=, right, \
890 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
893 * @right: an arbitrary expression that evaluates to a null terminated string.
895 * Sets an expectation that the values that @left and @right evaluate to are
897 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
900 #define KUNIT_EXPECT_STREQ(test, left, right) \ argument
901 KUNIT_EXPECT_STREQ_MSG(test, left, right, NULL)
903 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \ argument
906 left, ==, right, \
911 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
914 * @right: an arbitrary expression that evaluates to a null terminated string.
916 * Sets an expectation that the values that @left and @right evaluate to are
918 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
921 #define KUNIT_EXPECT_STRNEQ(test, left, right) \ argument
922 KUNIT_EXPECT_STRNEQ_MSG(test, left, right, NULL)
924 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
927 left, !=, right, \
1037 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1040 * @right: an arbitrary expression that evaluates to a primitive C type.
1042 * Sets an assertion that the values that @left and @right evaluate to are
1046 #define KUNIT_ASSERT_EQ(test, left, right) \ argument
1047 KUNIT_ASSERT_EQ_MSG(test, left, right, NULL)
1049 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \ argument
1052 left, ==, right, \
1057 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1060 * @right: an arbitrary expression that evaluates to a pointer.
1062 * Sets an assertion that the values that @left and @right evaluate to are
1066 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \ argument
1067 KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, NULL)
1069 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \ argument
1072 left, ==, right, \
1077 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1080 * @right: an arbitrary expression that evaluates to a primitive C type.
1082 * Sets an assertion that the values that @left and @right evaluate to are not
1086 #define KUNIT_ASSERT_NE(test, left, right) \ argument
1087 KUNIT_ASSERT_NE_MSG(test, left, right, NULL)
1089 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \ argument
1092 left, !=, right, \
1097 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1098 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1101 * @right: an arbitrary expression that evaluates to a pointer.
1103 * Sets an assertion that the values that @left and @right evaluate to are not
1107 #define KUNIT_ASSERT_PTR_NE(test, left, right) \ argument
1108 KUNIT_ASSERT_PTR_NE_MSG(test, left, right, NULL)
1110 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \ argument
1113 left, !=, right, \
1117 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1120 * @right: an arbitrary expression that evaluates to a primitive C type.
1123 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1127 #define KUNIT_ASSERT_LT(test, left, right) \ argument
1128 KUNIT_ASSERT_LT_MSG(test, left, right, NULL)
1130 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ argument
1133 left, <, right, \
1137 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1140 * @right: an arbitrary expression that evaluates to a primitive C type.
1143 * equal to the value that @right evaluates to. This is the same as
1147 #define KUNIT_ASSERT_LE(test, left, right) \ argument
1148 KUNIT_ASSERT_LE_MSG(test, left, right, NULL)
1150 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \ argument
1153 left, <=, right, \
1158 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1161 * @right: an arbitrary expression that evaluates to a primitive C type.
1164 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1168 #define KUNIT_ASSERT_GT(test, left, right) \ argument
1169 KUNIT_ASSERT_GT_MSG(test, left, right, NULL)
1171 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ argument
1174 left, >, right, \
1179 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1182 * @right: an arbitrary expression that evaluates to a primitive C type.
1185 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1189 #define KUNIT_ASSERT_GE(test, left, right) \ argument
1190 KUNIT_ASSERT_GE_MSG(test, left, right, NULL)
1192 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \ argument
1195 left, >=, right, \
1200 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1203 * @right: an arbitrary expression that evaluates to a null terminated string.
1205 * Sets an assertion that the values that @left and @right evaluate to are
1209 #define KUNIT_ASSERT_STREQ(test, left, right) \ argument
1210 KUNIT_ASSERT_STREQ_MSG(test, left, right, NULL)
1212 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \ argument
1215 left, ==, right, \
1220 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1223 * @right: an arbitrary expression that evaluates to a null terminated string.
1225 * Sets an expectation that the values that @left and @right evaluate to are
1227 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1230 #define KUNIT_ASSERT_STRNEQ(test, left, right) \ argument
1231 KUNIT_ASSERT_STRNEQ_MSG(test, left, right, NULL)
1233 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \ argument
1236 left, !=, right, \