MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_layer_from_str

Function test_layer_from_str

atomic-remote/src/streaming/tests.rs:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[test]
8fn test_layer_from_str() {
9 assert_eq!(Layer::from_str_loose("graph"), Some(Layer::Graph));
10 assert_eq!(Layer::from_str_loose("GRAPH"), Some(Layer::Graph));
11 assert_eq!(Layer::from_str_loose("semantic"), Some(Layer::Semantic));
12 assert_eq!(Layer::from_str_loose("content"), Some(Layer::Content));
13 assert_eq!(Layer::from_str_loose("unknown"), None);
14 assert_eq!(Layer::from_str_loose(""), None);
15}
16
17#[test]
18fn test_layer_as_str() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected