Page MenuHomeDevCentral

lib.rs
No OneTemporary

use docker_registry_api::registry::Registry;
#[test]
fn test_registry_stats() {
let registry = Registry::new("tests/registry".to_string());
assert_eq!(3, registry.count_repositories()); // Lorem, ipsum, dolor
}
#[test]
fn test_registry_stats_when_registry_is_empty() {
let registry = Registry::new("tests/void-registry".to_string());
assert_eq!(0, registry.count_repositories());
}
#[test]
fn test_registry_stats_when_registry_is_a_file() {
let registry = Registry::new("tests/broken-registry".to_string());
assert_eq!(0, registry.count_repositories());
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 13, 12:34 (2 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4254656
Default Alt Text
lib.rs (586 B)

Event Timeline