aboutsummaryrefslogtreecommitdiffstats
path: root/rust/build_error.rs
diff options
context:
space:
mode:
authorMilan Landaverde <[email protected]>2022-11-10 16:41:30 +0000
committerMiguel Ojeda <[email protected]>2022-12-04 00:59:15 +0000
commit985f1f09bf5bf8cbcb43e58a2320de2a5054be4c (patch)
tree4424cfdc5f3a17ca64dff5945bda893c930c7ddc /rust/build_error.rs
parentrust: str: implement several traits for `CStr` (diff)
downloadkernel-985f1f09bf5bf8cbcb43e58a2320de2a5054be4c.tar.gz
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 <[email protected]> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/build_error.rs')
0 files changed, 0 insertions, 0 deletions