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

TyRoXx / NonlocalityOS / 14775473202

01 May 2025 12:37PM UTC coverage: 76.018% (-1.6%) from 77.667%
14775473202

Pull #221

github

web-flow
Merge ca4cd1402 into e15d5670f
Pull Request #221: Hello world

292 of 372 new or added lines in 9 files covered. (78.49%)

36 existing lines in 7 files now uncovered.

3956 of 5204 relevant lines covered (76.02%)

1811.0 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