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

ergoplatform / sigma-rust / 19775209770

28 Nov 2025 10:47PM UTC coverage: 86.878% (+8.4%) from 78.463%
19775209770

Pull #838

github

web-flow
Merge 4250c5d87 into 2f840d387
Pull Request #838: CI fixes

8 of 9 new or added lines in 8 files covered. (88.89%)

1631 existing lines in 221 files now uncovered.

27457 of 31604 relevant lines covered (86.88%)

252801.9 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 {
10✔
19
        ScriptEnv(HashMap::new())
10✔
20
    }
10✔
21

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