Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56950070
lib.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
lib.rs
View Options
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
Details
Attached
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)
Attached To
Mode
rAPIREG Nasqueron private Docker registry API
Attached
Detach File
Event Timeline
Log In to Comment