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

Function test_error_display

atomic-repository/src/semantic_regen.rs:1128–1136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1126
1127 #[test]
1128 fn test_error_display() {
1129 let err = RegenError::Tokenize {
1130 path: "test.rs".into(),
1131 reason: "invalid utf-8".into(),
1132 };
1133 let display = format!("{}", err);
1134 assert!(display.contains("test.rs"));
1135 assert!(display.contains("invalid utf-8"));
1136 }
1137
1138 #[test]
1139 fn test_error_not_found() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected