Lines Matching +full:default +full:- +full:trim
1 // SPDX-License-Identifier: GPL-2.0
3 //! Generates KUnit tests from saved `rustdoc`-generated tests.
10 //! - Test code should not care about the implementation.
12 //! - Documentation looks worse if it needs to carry extra details unrelated to the piece
15 //! - Test code should be able to define functions and call them, without having to carry
18 //! - Later on, we may want to be able to test non-kernel code (e.g. `core` or third-party
22 //! (i.e. `current->kunit_test`).
48 fn find_real_path<'a>(srctree: &Path, valid_paths: &'a mut Vec<PathBuf>, file: &str) -> &'a str {
177 "{kunit_name}", "{real_path}", __DOCTEST_ANCHOR - {line}, $cond
187 "{kunit_name}", "{real_path}", __DOCTEST_ANCHOR - {line}, $left, $right
192 // Many tests need the prelude, so provide it by default.
200 // when the user is running KUnit manually, or when passing `--raw_output` to `kunit.py`.
224 let rust_tests = rust_tests.trim();
225 let c_test_declarations = c_test_declarations.trim();
226 let c_test_cases = c_test_cases.trim();