Lines Matching full:example

11 and then sets *expectations* for what should happen. For example:
24 In the above example, ``example_test_success`` always passes because it does
36 logged. For example:
46 In the above example, ``add_test_basic`` makes a number of assertions about the
65 For example, if we want to rigorously test the ``add`` function above, create
97 terminates the test case if the condition is not satisfied. For example:
115 In this example, the method under test should return pointer to a value. If the
129 suite and/or every test case. For example:
141 .name = "example",
150 In the above example, the test suite ``example_test_suite`` would first run
179 or hardware specific. For example, we might want to test code that really
193 .. TODO(brendanhiggins@google.com): Add an actual example of an architecture-
234 example:
262 In this example, computing the pointer to the child from the pointer to the
275 example, implementing a fake EEPROM that stores the "contents" in an
429 for example: testing a hash function.
432 For example, to test ``sha1sum(1)``, we can write:
452 helper macro variation, for example:
485 * For example, see ``fs/ext4/inode-test.c``.
489 * For example: if we want to test ``sha256sum``, we could add a ``sha256``
575 For example:
594 example:
609 Similar to as shown above, we can add test-specific logic. For example:
629 For example, see example in section *Injecting Test-Only Code* or if
634 The example below includes how to implement "mocking":
668 In this example, we are using the ``priv`` member of ``struct kunit`` as a way
675 flexibility as a ``priv`` member, but also, for example, allowing helper
685 For example, we have an option to enable some extra debug checks on some data