Lines Matching full:an

124  * struct kunit_case - represents an individual test case.
139 * terminated with an empty test case.
189 * &struct kunit_case for an example on how to use it.
321 * an initcall which we don't want as the idea is that for builtins
361 * An alternative is to build the tests as a module. Because modules do not
362 * support multiple initcall()s, we need to initialize an array of suites for a
437 * If an init function is supplied, @data is passed to it instead.
473 * cleaned up at the end of a test case. See &struct kunit_resource for an
477 * specify an @internal_gfp that is compatible with the use context of your
508 * An instance of kunit_resource_match_t that matches a resource whose
721 * kunit_info() - Prints an INFO level message associated with @test.
726 * Prints an info level message associated with the test suite being run.
744 * kunit_err() - Prints an ERROR level message associated with @test.
749 * Prints an error level message.
758 * The opposite of KUNIT_FAIL(), it is an expectation that cannot fail. In other
790 * @fmt: an informational message to be printed when the assertion is made.
793 * The opposite of KUNIT_SUCCEED(), it is an expectation that always fails. In
1304 * @condition: an arbitrary boolean expression. The test fails when this does
1309 * the test case from continuing to run; this is otherwise known as an
1325 * @condition: an arbitrary boolean expression. The test fails when this does
1328 * Sets an expectation that @condition evaluates to false. See
1342 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
1344 * @left: an arbitrary expression that evaluates to a primitive C type.
1345 * @right: an arbitrary expression that evaluates to a primitive C type.
1347 * Sets an expectation that the values that @left and @right evaluate to are
1366 * @left: an arbitrary expression that evaluates to a pointer.
1367 * @right: an arbitrary expression that evaluates to a pointer.
1369 * Sets an expectation that the values that @left and @right evaluate to are
1389 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
1391 * @left: an arbitrary expression that evaluates to a primitive C type.
1392 * @right: an arbitrary expression that evaluates to a primitive C type.
1394 * Sets an expectation that the values that @left and @right evaluate to are not
1413 * @left: an arbitrary expression that evaluates to a pointer.
1414 * @right: an arbitrary expression that evaluates to a pointer.
1416 * Sets an expectation that the values that @left and @right evaluate to are not
1436 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
1438 * @left: an arbitrary expression that evaluates to a primitive C type.
1439 * @right: an arbitrary expression that evaluates to a primitive C type.
1441 * Sets an expectation that the value that @left evaluates to is less than the
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 expectation that the value that @left evaluates to is less than or
1480 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1482 * @left: an arbitrary expression that evaluates to a primitive C type.
1483 * @right: an arbitrary expression that evaluates to a primitive C type.
1485 * Sets an expectation that the value that @left evaluates to is greater than
1504 * @left: an arbitrary expression that evaluates to a primitive C type.
1505 * @right: an arbitrary expression that evaluates to a primitive C type.
1507 * Sets an expectation that the value that @left evaluates to is greater than
1526 * @left: an arbitrary expression that evaluates to a null terminated string.
1527 * @right: an arbitrary expression that evaluates to a null terminated string.
1529 * Sets an expectation that the values that @left and @right evaluate to are
1548 * @left: an arbitrary expression that evaluates to a null terminated string.
1549 * @right: an arbitrary expression that evaluates to a null terminated string.
1551 * Sets an expectation that the values that @left and @right evaluate to are
1570 * @ptr: an arbitrary pointer.
1572 * Sets an expectation that the value that @ptr evaluates to is not null and not
1573 * an errno stored in a pointer. This is semantically equivalent to
1591 * KUNIT_ASSERT_TRUE() - Sets an assertion that @condition is true.
1593 * @condition: an arbitrary boolean expression. The test fails and aborts when
1598 * an expectation failure, it will prevent the test case from continuing to run;
1599 * this is otherwise known as an *assertion failure*.
1612 * KUNIT_ASSERT_FALSE() - Sets an assertion that @condition is false.
1614 * @condition: an arbitrary boolean expression.
1616 * Sets an assertion that the value that @condition evaluates to is false. This
1617 * is the same as KUNIT_EXPECT_FALSE(), except it causes an assertion failure
1631 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1633 * @left: an arbitrary expression that evaluates to a primitive C type.
1634 * @right: an arbitrary expression that evaluates to a primitive C type.
1636 * Sets an assertion that the values that @left and @right evaluate to are
1637 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1654 * @left: an arbitrary expression that evaluates to a pointer.
1655 * @right: an arbitrary expression that evaluates to a pointer.
1657 * Sets an assertion that the values that @left and @right evaluate to are
1658 * equal. This is the same as KUNIT_EXPECT_EQ(), except it causes an assertion
1673 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1675 * @left: an arbitrary expression that evaluates to a primitive C type.
1676 * @right: an arbitrary expression that evaluates to a primitive C type.
1678 * Sets an assertion that the values that @left and @right evaluate to are not
1679 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1697 * @left: an arbitrary expression that evaluates to a pointer.
1698 * @right: an arbitrary expression that evaluates to a pointer.
1700 * Sets an assertion that the values that @left and @right evaluate to are not
1701 * equal. This is the same as KUNIT_EXPECT_NE(), except it causes an assertion
1715 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1717 * @left: an arbitrary expression that evaluates to a primitive C type.
1718 * @right: an arbitrary expression that evaluates to a primitive C type.
1720 * Sets an assertion that the value that @left evaluates to is less than the
1722 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1736 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1738 * @left: an arbitrary expression that evaluates to a primitive C type.
1739 * @right: an arbitrary expression that evaluates to a primitive C type.
1741 * Sets an assertion that the value that @left evaluates to is less than or
1743 * KUNIT_EXPECT_LE(), except it causes an assertion failure (see
1758 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1760 * @left: an arbitrary expression that evaluates to a primitive C type.
1761 * @right: an arbitrary expression that evaluates to a primitive C type.
1763 * Sets an assertion that the value that @left evaluates to is greater than the
1765 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1782 * @left: an arbitrary expression that evaluates to a primitive C type.
1783 * @right: an arbitrary expression that evaluates to a primitive C type.
1785 * Sets an assertion that the value that @left evaluates to is greater than the
1787 * it causes an assertion failure (see KUNIT_ASSERT_TRUE()) when the assertion
1802 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1804 * @left: an arbitrary expression that evaluates to a null terminated string.
1805 * @right: an arbitrary expression that evaluates to a null terminated string.
1807 * Sets an assertion that the values that @left and @right evaluate to are
1808 * equal. This is the same as KUNIT_EXPECT_STREQ(), except it causes an
1825 * @left: an arbitrary expression that evaluates to a null terminated string.
1826 * @right: an arbitrary expression that evaluates to a null terminated string.
1828 * Sets an expectation that the values that @left and @right evaluate to are
1847 * @ptr: an arbitrary pointer.
1849 * Sets an assertion that the value that @ptr evaluates to is not null and not
1850 * an errno stored in a pointer. This is the same as
1851 * KUNIT_EXPECT_NOT_ERR_OR_NULL(), except it causes an assertion failure (see
1865 * KUNIT_ARRAY_PARAM() - Define test parameter generator from an array.