()
| 6 | |
| 7 | #[test] |
| 8 | fn 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] |
| 18 | fn test_layer_as_str() { |
nothing calls this directly
no outgoing calls
no test coverage detected