Lines Matching refs:function
36 …rary/*.h` and include the corresponding header in the test code. If the function should be `static…
61 … to change the behavior, do it by function substitution.** See [“rules for function substitution”]…
63 #### Rules for function substitution
65 This section explains how to replace a library function `mbedtls_foo()` by alternative code for tes…
67 … defined to be a system function (like `mbedtls_calloc` or `mbedtls_fopen`), which we replace to m…
69 …function is a `static inline` function that does nothing (not a macro, to avoid accidentally skipp…
71 …function pointer type. This global variable is initialized to the system function, or to a functio…
75 * The test function (or the whole test file) must depend on `MBEDTLS_TEST_HOOKS`.
76 * At the beginning of the test function, set the global function pointers to the desired value.
77 * In the test function's cleanup code, restore the global function pointers to their default value.
226 … Changing the behavior should require some action at runtime (calling a function or changing a var…
288 …function or test program must clean up after itself. Use the cleanup code (after the `exit` label …
366 …ing without isolation. To corrupt the key store, we would need to add a function to the library or…