Lines Matching refs:example
33 the kernel; for example, it does not intend to be an end-to-end testing
55 and then sets *expectations* for what should happen. For example:
68 In the above example ``example_test_success`` always passes because it does
79 the failure is logged. For example:
89 In the above example ``add_test_basic`` makes a number of assertions about the
109 For example, if we wanted to properly test the add function above, we would
147 For example:
168 In this example, the method under test should return a pointer to a value, so
198 .name = "example",
205 In the above example the test suite, ``example_test_suite``, would run the test
265 in the child struct. For example:
293 In this example (as in most kernel code) the operation of computing the pointer
308 A good example for this might be implementing a fake EEPROM that just stores the
309 "contents" in an internal buffer. For example, let's assume we have a class that
466 fictitious example for ``sha1sum(1)``
480 and make it easier to track down. (Yes, in this example, ``want`` is likely
520 * E.g. see ``fs/ext4/inode-test.c`` for an example of both.
640 ``--cross_compile`` when invoking the KUnit Wrapper. For example, we could run
653 For example, let's say you have the following kunitconfig:
696 # Subtest: example
700 ok 1 - example
717 modprobe example-test
748 specific test: for example, you might want to test some code that really belongs
759 .. TODO(brendanhiggins@google.com): Add an actual example of an architecture-