Files
linux/rust/kernel
Miguel Ojeda 2d6c87d0d6 rust: str: take advantage of the -> Result support in KUnit #[test]'s
Since now we have support for returning `-> Result`s, we can convert some
of these tests to use the feature, and serve as a first user for it too.

Thus convert them, which allows us to remove some `unwrap()`s.

We keep the actual assertions we want to make as explicit ones with
`assert*!`s.

Reviewed-by: David Gow <davidgow@google.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250502215133.1923676-6-ojeda@kernel.org
[ Split the `CString` simplification into a new commit. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-05-27 20:09:59 +02:00
..
2025-05-26 18:03:09 +02:00
2025-03-10 15:12:17 +01:00
2025-05-26 18:03:09 +02:00
2025-03-16 21:59:19 +01:00
2025-02-22 15:44:19 +01:00
2025-05-27 20:09:59 +02:00
2024-12-20 17:21:04 +01:00
2024-10-08 15:44:36 +02:00
2024-12-20 17:19:26 +01:00
2025-04-29 15:31:07 +02:00
2024-11-04 16:21:44 -05:00