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

ergoplatform / sigma-rust / 19791680207

30 Nov 2025 12:58AM UTC coverage: 86.917% (+8.5%) from 78.463%
19791680207

Pull #838

github

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

15 of 17 new or added lines in 9 files covered. (88.24%)

1619 existing lines in 221 files now uncovered.

27472 of 31607 relevant lines covered (86.92%)

252960.89 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