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

TyRoXx / NonlocalityOS / 14776020836

01 May 2025 01:16PM UTC coverage: 76.808% (-0.8%) from 77.611%
14776020836

Pull #227

github

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

287 of 357 new or added lines in 9 files covered. (80.39%)

9 existing lines in 3 files now uncovered.

3951 of 5144 relevant lines covered (76.81%)

1832.82 hits per line

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

35.0
/lambda/src/standard_library.rs
1
use astraea::tree::{BlobDigest, Value, ValueBlob};
2

3
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
4
pub struct ConsoleOutput {
5
    pub message: BlobDigest,
6
}
7

8
impl ConsoleOutput {
9
    pub fn to_value(&self) -> Value {
3✔
10
        Value::new(ValueBlob::empty(), vec![self.message])
3✔
11
    }
12

13
    pub fn from_value(value: &Value) -> Option<ConsoleOutput> {
1✔
14
        if value.blob().len() != 0 {
1✔
NEW
15
            return None;
×
16
        }
17
        if value.references().len() != 1 {
1✔
NEW
18
            return None;
×
19
        }
20
        Some(ConsoleOutput {
1✔
21
            message: value.references()[0],
1✔
22
        })
23
    }
24
}
25

26
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
27
pub struct AndThen {
28
    pub effect: BlobDigest,
29
    pub handle_result: BlobDigest,
30
}
31

32
impl AndThen {
NEW
33
    pub fn new(effect: BlobDigest, handle_result: BlobDigest) -> Self {
×
34
        Self {
35
            effect,
36
            handle_result,
37
        }
38
    }
39

NEW
40
    pub fn to_value(&self) -> Value {
×
NEW
41
        Value::new(ValueBlob::empty(), vec![self.effect, self.handle_result])
×
42
    }
43

NEW
44
    pub fn from_value(value: &Value) -> Option<AndThen> {
×
NEW
45
        if value.blob().len() != 0 {
×
NEW
46
            return None;
×
47
        }
NEW
48
        if value.references().len() != 2 {
×
NEW
49
            return None;
×
50
        }
NEW
51
        Some(AndThen {
×
NEW
52
            effect: value.references()[0],
×
NEW
53
            handle_result: value.references()[1],
×
54
        })
55
    }
56
}
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