Lines Matching full:an

70  * Speed Attribute is stored as an enum and separated into categories of
90 * struct kunit_case - represents an individual test case.
106 * terminated with an empty test case.
158 * &struct kunit_case for an example on how to use it.
260 /* Stores an array of suites, end points one past the end */
530 * kunit_info() - Prints an INFO level message associated with @test.
535 * Prints an info level message associated with the test suite being run.
553 * kunit_err() - Prints an ERROR level message associated with @test.
558 * Prints an error level message.
567 * The opposite of KUNIT_FAIL(), it is an expectation that cannot fail. In other
609 * @fmt: an informational message to be printed when the assertion is made.
612 * The opposite of KUNIT_SUCCEED(), it is an expectation that always fails. In
623 /* Helper to safely pass around an initializer list to other macros. */
826 * @condition: an arbitrary boolean expression. The test fails when this does
831 * the test case from continuing to run; this is otherwise known as an
847 * @condition: an arbitrary boolean expression. The test fails when this does
850 * Sets an expectation that @condition evaluates to false. See
864 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
866 * @left: an arbitrary expression that evaluates to a primitive C type.
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
887 * @left: an arbitrary expression that evaluates to a pointer.
888 * @right: an arbitrary expression that evaluates to a pointer.
890 * Sets an expectation that the values that @left and @right evaluate to are
906 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
908 * @left: an arbitrary expression that evaluates to a primitive C type.
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
929 * @left: an arbitrary expression that evaluates to a pointer.
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
948 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
950 * @left: an arbitrary expression that evaluates to a primitive C type.
951 * @right: an arbitrary expression that evaluates to a primitive C type.
953 * Sets an expectation that the value that @left evaluates to is less than the
971 * @left: an arbitrary expression that evaluates to a primitive C type.
972 * @right: an arbitrary expression that evaluates to a primitive C type.
974 * Sets an expectation that the value that @left evaluates to is less than or
990 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
992 * @left: an arbitrary expression that evaluates to a primitive C type.
993 * @right: an arbitrary expression that evaluates to a primitive C type.
995 * Sets an expectation that the value that @left evaluates to is greater than
1013 * @left: an arbitrary expression that evaluates to a primitive C type.
1014 * @right: an arbitrary expression that evaluates to a primitive C type.
1016 * Sets an expectation that the value that @left evaluates to is greater than
1034 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1055 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1076 * @left: An arbitrary expression that evaluates to the specified size.
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
1103 * @left: An arbitrary expression that evaluates to the specified size.
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
1130 * @ptr: an arbitrary pointer.
1132 * Sets an expectation that the value that @ptr evaluates to is null. This is
1151 * @ptr: an arbitrary pointer.
1153 * Sets an expectation that the value that @ptr evaluates to is not null. This
1172 * @ptr: an arbitrary pointer.
1174 * Sets an expectation that the value that @ptr evaluates to is not null and not
1175 * an errno stored in a pointer. This is semantically equivalent to
1193 * KUNIT_ASSERT_TRUE() - Sets an assertion that @condition is true.
1195 * @condition: an arbitrary boolean expression. The test fails and aborts when
1200 * an expectation failure, it will prevent the test case from continuing to run;
1201 * this is otherwise known as an *assertion failure*.
1214 * KUNIT_ASSERT_FALSE() - Sets an assertion that @condition is false.
1216 * @condition: an arbitrary boolean expression.
1218 * Sets an assertion that the value that @condition evaluates to is false. This
1219 * is the same as KUNIT_EXPECT_FALSE(), except it causes an assertion failure
1233 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1235 * @left: an arbitrary expression that evaluates to a primitive C type.
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
1239 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1255 * @left: an arbitrary expression that evaluates to a pointer.
1256 * @right: an arbitrary expression that evaluates to a pointer.
1258 * Sets an assertion that the values that @left and @right evaluate to are
1259 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1273 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1275 * @left: an arbitrary expression that evaluates to a primitive C type.
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
1279 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1296 * @left: an arbitrary expression that evaluates to a pointer.
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
1300 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1313 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1315 * @left: an arbitrary expression that evaluates to a primitive C type.
1316 * @right: an arbitrary expression that evaluates to a primitive C type.
1318 * Sets an assertion that the value that @left evaluates to is less than the
1320 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1333 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1335 * @left: an arbitrary expression that evaluates to a primitive C type.
1336 * @right: an arbitrary expression that evaluates to a primitive C type.
1338 * Sets an assertion that the value that @left evaluates to is less than or
1340 * KUNIT_EXPECT_LE(), except it causes an assertion failure (see
1354 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1356 * @left: an arbitrary expression that evaluates to a primitive C type.
1357 * @right: an arbitrary expression that evaluates to a primitive C type.
1359 * Sets an assertion that the value that @left evaluates to is greater than the
1361 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1377 * @left: an arbitrary expression that evaluates to a primitive C type.
1378 * @right: an arbitrary expression that evaluates to a primitive C type.
1380 * Sets an assertion that the value that @left evaluates to is greater than the
1382 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1396 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1398 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1402 * equal. This is the same as KUNIT_EXPECT_STREQ(), except it causes an
1418 * @left: an arbitrary expression that evaluates to a null terminated string.
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
1439 * @ptr: an arbitrary pointer.
1441 * Sets an assertion that the values that @ptr evaluates to is null. This is
1442 * the same as KUNIT_EXPECT_NULL(), except it causes an assertion
1460 * @ptr: an arbitrary pointer.
1462 * Sets an assertion that the values that @ptr evaluates to is not null. This
1463 * is the same as KUNIT_EXPECT_NOT_NULL(), except it causes an assertion
1481 * @ptr: an arbitrary pointer.
1483 * Sets an assertion that the value that @ptr evaluates to is not null and not
1484 * an errno stored in a pointer. This is the same as
1485 * KUNIT_EXPECT_NOT_ERR_OR_NULL(), except it causes an assertion failure (see
1499 * KUNIT_ARRAY_PARAM() - Define test parameter generator from an array.