Lines Matching refs:line
129 // The `name` follows the `{file}_{line}_{number}` pattern (see description in
133 // Extract the `file` and the `line`, discarding the `number`.
134 let (file, line) = name.rsplit_once('_').unwrap().0.rsplit_once('_').unwrap();
149 // We avoid the line number, like `rustdoc` does, to make things slightly more stable for
151 // print a diagnostics line in the KTAP report.
158 // Calculate how many lines before `main` function (including the `main` function line).
161 .take_while(|line| !line.contains("fn main() {"))
175 kernel::kunit_assert!("{kunit_name}", "{real_path}", __DOCTEST_ANCHOR - {line}, $cond);
183 kernel::kunit_assert_eq!("{kunit_name}", "{real_path}", __DOCTEST_ANCHOR - {line}, $left, $right);
200 kernel::kunit::info(format_args!(" # {kunit_name}.location: {real_path}:{line}\n"));
204 static __DOCTEST_ANCHOR: i32 = core::line!() as i32 + {body_offset} + 1;