Coverage Report

Created: 2026-12-05 06:27

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
super-voice-daemon/src/registry/local_dir.rs
Line
Count
Source
1
// SPDX-License-Identifier: GPL-3.0-only
2
//! Resolve a locally-staged backend directory into an [`IndexBackend`] for the
3
//! Import-from-dir install path: `super_engine_daemon::registry::local_dir`,
4
//! for Super STT's manifests.
5
6
use std::path::Path;
7
8
pub use super_engine_daemon::registry::local_dir::ResolveError;
9
10
use crate::registry::index_schema::IndexBackend;
11
12
/// Read and validate `<local_path>/backend.toml` into an index entry. See
13
/// `super_engine_daemon::registry::local_dir::resolve`.
14
///
15
/// # Errors
16
/// See [`ResolveError`].
17
0
pub fn resolve(local_path: &Path) -> Result<IndexBackend, ResolveError> {
18
0
    super_engine_daemon::registry::local_dir::resolve::<super_voice_registry_types::Voice>(
19
0
        local_path,
20
0
    )
21
0
}