]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Documentation: rust: testing: add docs on the new KUnit `#[test]` tests
authorMiguel Ojeda <ojeda@kernel.org>
Fri, 2 May 2025 21:51:32 +0000 (23:51 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 27 May 2025 18:09:59 +0000 (20:09 +0200)
commita3b2347343e077e81d3c169f32c9b2cb1364f4cc
tree1021a8602d5d5e3aa7217b44bfe76db7793c5884
parent0a8d4eab17e6f94d83e1ee4c58c21e613934ac66
Documentation: rust: testing: add docs on the new KUnit `#[test]` tests

There was no documentation yet on the KUnit-based `#[test]`s.

Thus add it now.

It includes an explanation about the `assert*!` macros being mapped to
KUnit and the support for `-> Result` introduced in these series.

Reviewed-by: David Gow <davidgow@google.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250502215133.1923676-8-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Documentation/rust/testing.rst