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

ergoplatform / sigma-rust / 19791940777

30 Nov 2025 01:23AM UTC coverage: 86.947% (+8.5%) from 78.463%
19791940777

Pull #838

github

web-flow
Merge 04804ccc0 into 2f840d387
Pull Request #838: CI fixes

17 of 19 new or added lines in 10 files covered. (89.47%)

1625 existing lines in 222 files now uncovered.

27478 of 31603 relevant lines covered (86.95%)

506474.74 hits per line

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

66.67
/ergoscript-compiler/src/script_env.rs
1
//! Compilation environment
2

3
use std::collections::HashMap;
4

5
use ergotree_ir::mir::constant::Constant;
6

7
/// Environment with values substituted for identifiers during compilation
8
pub struct ScriptEnv(HashMap<String, Constant>);
9

10
impl Default for ScriptEnv {
11
    fn default() -> Self {
×
12
        Self::new()
×
UNCOV
13
    }
×
14
}
15

16
impl ScriptEnv {
17
    /// Empty environment
18
    pub fn new() -> Self {
20✔
19
        ScriptEnv(HashMap::new())
20✔
20
    }
20✔
21

22
    /// Returns the value([`Constant`]) for the given identifier (if any)
23
    pub fn get(&self, ident: &str) -> Option<&Constant> {
14✔
24
        self.0.get(ident)
14✔
25
    }
14✔
26
}
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