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

Function test_parse_error

atomic-core/src/diff/algorithm.rs:195–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194 #[test]
195 fn test_parse_error() {
196 let err = "unknown".parse::<Algorithm>().unwrap_err();
197 assert!(err.to_string().contains("unknown"));
198 assert!(err.to_string().contains("myers"));
199 assert!(err.to_string().contains("patience"));
200 }
201
202 #[test]
203 fn test_debug() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected