Lines Matching full:an
62 * struct kunit_case - represents an individual test case.
77 * terminated with an empty test case.
127 * &struct kunit_case for an example on how to use it.
429 * kunit_info() - Prints an INFO level message associated with @test.
434 * Prints an info level message associated with the test suite being run.
452 * kunit_err() - Prints an ERROR level message associated with @test.
457 * Prints an error level message.
466 * The opposite of KUNIT_FAIL(), it is an expectation that cannot fail. In other
504 * @fmt: an informational message to be printed when the assertion is made.
507 * The opposite of KUNIT_SUCCEED(), it is an expectation that always fails. In
684 * @condition: an arbitrary boolean expression. The test fails when this does
689 * the test case from continuing to run; this is otherwise known as an
705 * @condition: an arbitrary boolean expression. The test fails when this does
708 * Sets an expectation that @condition evaluates to false. See
722 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
724 * @left: an arbitrary expression that evaluates to a primitive C type.
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
745 * @left: an arbitrary expression that evaluates to a pointer.
746 * @right: an arbitrary expression that evaluates to a pointer.
748 * Sets an expectation that the values that @left and @right evaluate to are
764 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
766 * @left: an arbitrary expression that evaluates to a primitive C type.
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
787 * @left: an arbitrary expression that evaluates to a pointer.
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
806 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
808 * @left: an arbitrary expression that evaluates to a primitive C type.
809 * @right: an arbitrary expression that evaluates to a primitive C type.
811 * Sets an expectation that the value that @left evaluates to is less than the
829 * @left: an arbitrary expression that evaluates to a primitive C type.
830 * @right: an arbitrary expression that evaluates to a primitive C type.
832 * Sets an expectation that the value that @left evaluates to is less than or
848 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
850 * @left: an arbitrary expression that evaluates to a primitive C type.
851 * @right: an arbitrary expression that evaluates to a primitive C type.
853 * Sets an expectation that the value that @left evaluates to is greater than
871 * @left: an arbitrary expression that evaluates to a primitive C type.
872 * @right: an arbitrary expression that evaluates to a primitive C type.
874 * Sets an expectation that the value that @left evaluates to is greater than
892 * @left: an arbitrary expression that evaluates to a null terminated string.
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
913 * @left: an arbitrary expression that evaluates to a null terminated string.
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
934 * @ptr: an arbitrary pointer.
936 * Sets an expectation that the value that @ptr evaluates to is null. This is
955 * @ptr: an arbitrary pointer.
957 * Sets an expectation that the value that @ptr evaluates to is not null. This
976 * @ptr: an arbitrary pointer.
978 * Sets an expectation that the value that @ptr evaluates to is not null and not
979 * an errno stored in a pointer. This is semantically equivalent to
997 * KUNIT_ASSERT_TRUE() - Sets an assertion that @condition is true.
999 * @condition: an arbitrary boolean expression. The test fails and aborts when
1004 * an expectation failure, it will prevent the test case from continuing to run;
1005 * this is otherwise known as an *assertion failure*.
1018 * KUNIT_ASSERT_FALSE() - Sets an assertion that @condition is false.
1020 * @condition: an arbitrary boolean expression.
1022 * Sets an assertion that the value that @condition evaluates to is false. This
1023 * is the same as KUNIT_EXPECT_FALSE(), except it causes an assertion failure
1037 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1039 * @left: an arbitrary expression that evaluates to a primitive C type.
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
1043 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1059 * @left: an arbitrary expression that evaluates to a pointer.
1060 * @right: an arbitrary expression that evaluates to a pointer.
1062 * Sets an assertion that the values that @left and @right evaluate to are
1063 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1077 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1079 * @left: an arbitrary expression that evaluates to a primitive C type.
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
1083 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1100 * @left: an arbitrary expression that evaluates to a pointer.
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
1104 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1117 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1119 * @left: an arbitrary expression that evaluates to a primitive C type.
1120 * @right: an arbitrary expression that evaluates to a primitive C type.
1122 * Sets an assertion that the value that @left evaluates to is less than the
1124 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1137 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1139 * @left: an arbitrary expression that evaluates to a primitive C type.
1140 * @right: an arbitrary expression that evaluates to a primitive C type.
1142 * Sets an assertion that the value that @left evaluates to is less than or
1144 * KUNIT_EXPECT_LE(), except it causes an assertion failure (see
1158 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1160 * @left: an arbitrary expression that evaluates to a primitive C type.
1161 * @right: an arbitrary expression that evaluates to a primitive C type.
1163 * Sets an assertion that the value that @left evaluates to is greater than the
1165 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1181 * @left: an arbitrary expression that evaluates to a primitive C type.
1182 * @right: an arbitrary expression that evaluates to a primitive C type.
1184 * Sets an assertion that the value that @left evaluates to is greater than the
1186 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1200 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1202 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1206 * equal. This is the same as KUNIT_EXPECT_STREQ(), except it causes an
1222 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1243 * @ptr: an arbitrary pointer.
1245 * Sets an assertion that the values that @ptr evaluates to is null. This is
1246 * the same as KUNIT_EXPECT_NULL(), except it causes an assertion
1264 * @ptr: an arbitrary pointer.
1266 * Sets an assertion that the values that @ptr evaluates to is not null. This
1267 * is the same as KUNIT_EXPECT_NOT_NULL(), except it causes an assertion
1285 * @ptr: an arbitrary pointer.
1287 * Sets an assertion that the value that @ptr evaluates to is not null and not
1288 * an errno stored in a pointer. This is the same as
1289 * KUNIT_EXPECT_NOT_ERR_OR_NULL(), except it causes an assertion failure (see
1303 * KUNIT_ARRAY_PARAM() - Define test parameter generator from an array.