diff options
author | 2022-11-10 17:41:30 +0100 | |
---|---|---|
committer | 2022-12-04 01:59:15 +0100 | |
commit | 985f1f09bf5bf8cbcb43e58a2320de2a5054be4c (patch) | |
tree | 4424cfdc5f3a17ca64dff5945bda893c930c7ddc /scripts/generate_rust_analyzer.py | |
parent | rust: str: implement several traits for `CStr` (diff) | |
download | laptop-kernel-985f1f09bf5bf8cbcb43e58a2320de2a5054be4c.tar.xz laptop-kernel-985f1f09bf5bf8cbcb43e58a2320de2a5054be4c.zip |
rust: str: add `CStr` unit tests
Add unit tests for `CStr::from_bytes_with_nul()` and
`CStr::from_bytes_with_nul_unchecked()`.
These serve as an example of the first unit tests for Rust code
(i.e. different from documentation tests).
Signed-off-by: Milan Landaverde <milan@mdaverde.com>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions