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

ergoplatform / sigma-rust / 19957094785

05 Dec 2025 08:23AM UTC coverage: 86.918% (+8.5%) from 78.463%
19957094785

Pull #837

github

web-flow
Merge dec08367a into 2f840d387
Pull Request #837: Split TransactionHintsBag hints properly

44 of 53 new or added lines in 13 files covered. (83.02%)

1621 existing lines in 221 files now uncovered.

27453 of 31585 relevant lines covered (86.92%)

253204.4 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

© 2025 Coveralls, Inc