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

TyRoXx / NonlocalityOS / 14776241932

01 May 2025 01:31PM UTC coverage: 77.046% (-0.6%) from 77.611%
14776241932

Pull #227

github

web-flow
Merge 005650a70 into 3008f5ee2
Pull Request #227: Remove obsolete code

287 of 351 new or added lines in 9 files covered. (81.77%)

4 existing lines in 3 files now uncovered.

3954 of 5132 relevant lines covered (77.05%)

1837.21 hits per line

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

71.43
/lambda/src/name.rs
1
use serde::{Deserialize, Serialize};
2
use std::fmt::Display;
3
use uuid::Uuid;
4

5
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy, Serialize, Deserialize)]
6
pub struct NamespaceId(pub [u8; 16]);
7

8
impl NamespaceId {
NEW
9
    pub fn random() -> Self {
×
NEW
10
        Self(Uuid::new_v4().into_bytes())
×
11
    }
12
}
13

14
impl Display for NamespaceId {
15
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12✔
16
        write!(f, "{}", Uuid::from_bytes(self.0))
12✔
17
    }
18
}
19

20
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Serialize, Deserialize)]
21
pub struct Name {
22
    pub namespace: NamespaceId,
23
    pub key: String,
24
}
25

26
impl Name {
27
    pub fn new(namespace: NamespaceId, key: String) -> Self {
28✔
28
        Self { namespace, key }
29
    }
30
}
31

32
impl Display for Name {
33
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12✔
34
        write!(f, "{}.{}", self.namespace, self.key)
12✔
35
    }
36
}
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