• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NVIDIA / nvrc / 20889598293

11 Jan 2026 04:40AM UTC coverage: 90.359% (-7.2%) from 97.582%
20889598293

Pull #98

github

web-flow
Merge 372373e41 into 4da950f83
Pull Request #98: hardened_std: reduce the attack surface

296 of 410 new or added lines in 14 files covered. (72.2%)

8 existing lines in 2 files now uncovered.

1359 of 1504 relevant lines covered (90.36%)

12.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/hardened_std/src/path.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright (c) NVIDIA CORPORATION
3

4
//! Path handling with minimal allocation
5

6
use alloc::string::String;
7

8
/// Path reference (unsized)
9
#[repr(transparent)]
10
pub struct Path {
11
    inner: str,
12
}
13

14
/// Owned path buffer
15
#[allow(dead_code)]
16
pub struct PathBuf {
17
    inner: String,
18
}
19

20
impl Path {
NEW
21
    pub fn new<S: AsRef<str> + ?Sized>(s: &S) -> &Path {
×
NEW
22
        unsafe { &*(s.as_ref() as *const str as *const Path) }
×
NEW
23
    }
×
24

25
    #[allow(dead_code)]
NEW
26
    pub fn exists(&self) -> bool {
×
NEW
27
        todo!("Path::exists")
×
28
    }
29

30
    #[allow(dead_code)]
NEW
31
    pub fn is_symlink(&self) -> bool {
×
NEW
32
        todo!("Path::is_symlink")
×
33
    }
34

NEW
35
    pub fn as_str(&self) -> &str {
×
NEW
36
        &self.inner
×
NEW
37
    }
×
38
}
39

40
impl AsRef<str> for Path {
NEW
41
    fn as_ref(&self) -> &str {
×
NEW
42
        &self.inner
×
NEW
43
    }
×
44
}
45

46
impl PathBuf {
47
    #[allow(dead_code)]
NEW
48
    pub fn new() -> Self {
×
NEW
49
        todo!("PathBuf::new")
×
50
    }
51
}
52

53
impl Default for PathBuf {
NEW
54
    fn default() -> Self {
×
NEW
55
        Self::new()
×
NEW
56
    }
×
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc