Lines Matching full:an

69  * Speed Attribute is stored as an enum and separated into categories of
89 * struct kunit_case - represents an individual test case.
105 * terminated with an empty test case.
157 * &struct kunit_case for an example on how to use it.
260 /* Stores an array of suites, end points one past the end */
607 * kunit_info() - Prints an INFO level message associated with @test.
612 * Prints an info level message associated with the test suite being run.
630 * kunit_err() - Prints an ERROR level message associated with @test.
635 * Prints an error level message.
653 * The opposite of KUNIT_FAIL(), it is an expectation that cannot fail. In other
697 * @fmt: an informational message to be printed when the assertion is made.
700 * The opposite of KUNIT_SUCCEED(), it is an expectation that always fails. In
711 /* Helper to safely pass around an initializer list to other macros. */
919 * @condition: an arbitrary boolean expression. The test fails when this does
924 * the test case from continuing to run; this is otherwise known as an
940 * @condition: an arbitrary boolean expression. The test fails when this does
943 * Sets an expectation that @condition evaluates to false. See
957 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
959 * @left: an arbitrary expression that evaluates to a primitive C type.
960 * @right: an arbitrary expression that evaluates to a primitive C type.
962 * Sets an expectation that the values that @left and @right evaluate to are
980 * @left: an arbitrary expression that evaluates to a pointer.
981 * @right: an arbitrary expression that evaluates to a pointer.
983 * Sets an expectation that the values that @left and @right evaluate to are
999 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1001 * @left: an arbitrary expression that evaluates to a primitive C type.
1002 * @right: an arbitrary expression that evaluates to a primitive C type.
1004 * Sets an expectation that the values that @left and @right evaluate to are not
1022 * @left: an arbitrary expression that evaluates to a pointer.
1023 * @right: an arbitrary expression that evaluates to a pointer.
1025 * Sets an expectation that the values that @left and @right evaluate to are not
1041 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1043 * @left: an arbitrary expression that evaluates to a primitive C type.
1044 * @right: an arbitrary expression that evaluates to a primitive C type.
1046 * Sets an expectation that the value that @left evaluates to is less than the
1064 * @left: an arbitrary expression that evaluates to a primitive C type.
1065 * @right: an arbitrary expression that evaluates to a primitive C type.
1067 * Sets an expectation that the value that @left evaluates to is less than or
1083 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1085 * @left: an arbitrary expression that evaluates to a primitive C type.
1086 * @right: an arbitrary expression that evaluates to a primitive C type.
1088 * Sets an expectation that the value that @left evaluates to is greater than
1106 * @left: an arbitrary expression that evaluates to a primitive C type.
1107 * @right: an arbitrary expression that evaluates to a primitive C type.
1109 * Sets an expectation that the value that @left evaluates to is greater than
1127 * @left: an arbitrary expression that evaluates to a null terminated string.
1128 * @right: an arbitrary expression that evaluates to a null terminated string.
1130 * Sets an expectation that the values that @left and @right evaluate to are
1148 * @left: an arbitrary expression that evaluates to a null terminated string.
1149 * @right: an arbitrary expression that evaluates to a null terminated string.
1151 * Sets an expectation that the values that @left and @right evaluate to are
1169 * @left: An arbitrary expression that evaluates to the specified size.
1170 * @right: An arbitrary expression that evaluates to the specified size.
1173 * Sets an expectation that the values that @left and @right evaluate to are
1196 * @left: An arbitrary expression that evaluates to the specified size.
1197 * @right: An arbitrary expression that evaluates to the specified size.
1200 * Sets an expectation that the values that @left and @right evaluate to are
1223 * @ptr: an arbitrary pointer.
1225 * Sets an expectation that the value that @ptr evaluates to is null. This is
1244 * @ptr: an arbitrary pointer.
1246 * Sets an expectation that the value that @ptr evaluates to is not null. This
1265 * @ptr: an arbitrary pointer.
1267 * Sets an expectation that the value that @ptr evaluates to is not null and not
1268 * an errno stored in a pointer. This is semantically equivalent to
1285 * @fmt: an informational message to be printed when the assertion is made.
1288 * The opposite of KUNIT_SUCCEED(), it is an assertion that always fails. In
1297 * KUNIT_ASSERT_TRUE() - Sets an assertion that @condition is true.
1299 * @condition: an arbitrary boolean expression. The test fails and aborts when
1304 * an expectation failure, it will prevent the test case from continuing to run;
1305 * this is otherwise known as an *assertion failure*.
1318 * KUNIT_ASSERT_FALSE() - Sets an assertion that @condition is false.
1320 * @condition: an arbitrary boolean expression.
1322 * Sets an assertion that the value that @condition evaluates to is false. This
1323 * is the same as KUNIT_EXPECT_FALSE(), except it causes an assertion failure
1337 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1339 * @left: an arbitrary expression that evaluates to a primitive C type.
1340 * @right: an arbitrary expression that evaluates to a primitive C type.
1342 * Sets an assertion that the values that @left and @right evaluate to are
1343 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1359 * @left: an arbitrary expression that evaluates to a pointer.
1360 * @right: an arbitrary expression that evaluates to a pointer.
1362 * Sets an assertion that the values that @left and @right evaluate to are
1363 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1377 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1379 * @left: an arbitrary expression that evaluates to a primitive C type.
1380 * @right: an arbitrary expression that evaluates to a primitive C type.
1382 * Sets an assertion that the values that @left and @right evaluate to are not
1383 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1400 * @left: an arbitrary expression that evaluates to a pointer.
1401 * @right: an arbitrary expression that evaluates to a pointer.
1403 * Sets an assertion that the values that @left and @right evaluate to are not
1404 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1417 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1419 * @left: an arbitrary expression that evaluates to a primitive C type.
1420 * @right: an arbitrary expression that evaluates to a primitive C type.
1422 * Sets an assertion that the value that @left evaluates to is less than the
1424 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1437 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1439 * @left: an arbitrary expression that evaluates to a primitive C type.
1440 * @right: an arbitrary expression that evaluates to a primitive C type.
1442 * Sets an assertion that the value that @left evaluates to is less than or
1444 * KUNIT_EXPECT_LE(), except it causes an assertion failure (see
1458 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1460 * @left: an arbitrary expression that evaluates to a primitive C type.
1461 * @right: an arbitrary expression that evaluates to a primitive C type.
1463 * Sets an assertion that the value that @left evaluates to is greater than the
1465 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1481 * @left: an arbitrary expression that evaluates to a primitive C type.
1482 * @right: an arbitrary expression that evaluates to a primitive C type.
1484 * Sets an assertion that the value that @left evaluates to is greater than the
1486 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1500 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1502 * @left: an arbitrary expression that evaluates to a null terminated string.
1503 * @right: an arbitrary expression that evaluates to a null terminated string.
1505 * Sets an assertion that the values that @left and @right evaluate to are
1506 * equal. This is the same as KUNIT_EXPECT_STREQ(), except it causes an
1520 * KUNIT_ASSERT_STRNEQ() - An assertion that strings @left and @right are not equal.
1522 * @left: an arbitrary expression that evaluates to a null terminated string.
1523 * @right: an arbitrary expression that evaluates to a null terminated string.
1525 * Sets an assertion that the values that @left and @right evaluate to are
1543 * @left: An arbitrary expression that evaluates to the specified size.
1544 * @right: An arbitrary expression that evaluates to the specified size.
1547 * Sets an assertion that the values that @left and @right evaluate to are
1570 * @left: An arbitrary expression that evaluates to the specified size.
1571 * @right: An arbitrary expression that evaluates to the specified size.
1574 * Sets an assertion that the values that @left and @right evaluate to are
1597 * @ptr: an arbitrary pointer.
1599 * Sets an assertion that the values that @ptr evaluates to is null. This is
1600 * the same as KUNIT_EXPECT_NULL(), except it causes an assertion
1618 * @ptr: an arbitrary pointer.
1620 * Sets an assertion that the values that @ptr evaluates to is not null. This
1621 * is the same as KUNIT_EXPECT_NOT_NULL(), except it causes an assertion
1639 * @ptr: an arbitrary pointer.
1641 * Sets an assertion that the value that @ptr evaluates to is not null and not
1642 * an errno stored in a pointer. This is the same as
1643 * KUNIT_EXPECT_NOT_ERR_OR_NULL(), except it causes an assertion failure (see
1657 * KUNIT_ARRAY_PARAM() - Define test parameter generator from an array.
1678 * KUNIT_ARRAY_PARAM_DESC() - Define test parameter generator from an array.