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

pomsky-lang / pomsky / 12301483439

12 Dec 2024 05:19PM UTC coverage: 80.275% (-0.2%) from 80.471%
12301483439

push

github

Aloso
feat: test command

360 of 593 new or added lines in 11 files covered. (60.71%)

20 existing lines in 7 files now uncovered.

4607 of 5739 relevant lines covered (80.28%)

374427.68 hits per line

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

83.33
/pomsky-bin/src/args/engines.rs
1
use std::ffi::OsString;
2

3
use super::ParseArgsError;
4

5
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6
pub(crate) enum RegexEngine {
7
    Pcre2,
8
}
9

10
impl RegexEngine {
11
    pub(crate) fn parse(value: OsString) -> Result<Self, ParseArgsError> {
1✔
12
        let lower = value.to_string_lossy().to_ascii_lowercase();
1✔
13
        Ok(match lower.as_str() {
1✔
14
            "pcre2" => RegexEngine::Pcre2,
1✔
NEW
15
            _ => return Err(ParseArgsError::UnknownEngine(lower)),
×
16
        })
17
    }
1✔
18
}
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