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

geo-engine / geoengine / 10699003826

04 Sep 2024 09:11AM UTC coverage: 91.003% (-0.1%) from 91.122%
10699003826

push

github

web-flow
Merge pull request #977 from geo-engine/model_db

db for ml models (wip)

460 of 843 new or added lines in 25 files covered. (54.57%)

21 existing lines in 9 files now uncovered.

133663 of 146878 relevant lines covered (91.0%)

52516.33 hits per line

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

0.0
/services/src/machine_learning/error.rs
1
use snafu::Snafu;
2
use strum::IntoStaticStr;
3

4
use super::MlModelName;
5

NEW
6
#[derive(Debug, Snafu, IntoStaticStr)]
×
7
#[snafu(visibility(pub(crate)))]
8
#[snafu(context(suffix(MachineLearningError)), module(error))] // disables default `Snafu` suffix
9
pub enum MachineLearningError {
10
    CouldNotFindMlModelFile {
11
        source: crate::error::Error,
12
    },
13
    ModelNotFound {
14
        name: MlModelName,
15
    },
16
    DuplicateMlModelName {
17
        name: MlModelName,
18
    },
19
    InvalidModelNamespace {
20
        name: MlModelName,
21
    },
22
    #[snafu(display("An unexpected database error occurred."))]
23
    Postgres {
24
        source: tokio_postgres::Error,
25
    },
26
    #[snafu(display("An unexpected database error occurred."))]
27
    Bb8 {
28
        source: bb8_postgres::bb8::RunError<tokio_postgres::Error>,
29
    },
30
}
31

32
impl From<bb8_postgres::tokio_postgres::error::Error> for MachineLearningError {
NEW
33
    fn from(e: bb8_postgres::tokio_postgres::error::Error) -> Self {
×
NEW
34
        Self::Postgres { source: e }
×
NEW
35
    }
×
36
}
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