Lines Matching refs:tests

34 In unit tests and in test programs, it's ok to include internal header files from `library/`. Do no…
36tests on functions that aren't part of the public API. Declare such functions in `library/*.h` and…
61 * **Where tests must be able to change the behavior, do it by function substitution.** See [“rules …
88 * Portability: tests should work on every platform. Skipping tests on certain platforms may hide er…
89tests should only enforce the documented behavior of the product, to avoid extra work when the pro…
102 * Files in storage (PSA API only — in the Mbed TLS API, black-box unit tests are sufficient).
143 We can include all the features we want to test in the public interface. Then the tests can be trul…
145 …main purpose of `mbedtls_psa_crypto_free` is to clean up all resources in tests, but this is also …
151 | Coverage | ~ Many useful tests are not reasonably achievable |
166 | Coverage | ~ Many useful tests are not reasonably achievable |
174 We can write tests that call internal functions that are not exposed in the public interfaces. This…
178 …to be used correctly. We may accidentally rely on internal details in the tests that are not neces…
184 | Coverage | ~ Many useful tests require additional internal interfaces |
186 | | ~ The tests may call internal functions in a way that does not reflect actual usage…
188 | Portability | + Fine as long as we control how the tests are linked |
190 | Maintainability | + Tests interfaces that are documented; dependencies in the tests are easily no…
278 Solution ([debugger](#debugger-based-testing)): implemented in `tests/scripts/test_zeroize.gdb`.
286 Solution ([instrumentation](#runtime-instrumentation)): run tests with ASan. (We also use Valgrind,…
298 Solution ([internal interface](#internal-interfaces)): in most tests involving PSA functions, the c…
300 Note there must also be tests that call `mbedtls_psa_crypto_free` with keys still open, to verify t…
314 …are left over in the key store even if a test has failed (as that could cause other tests to fail).
350 … that we would accidentally modify a single value or a few values, so the tests should be exhausti…