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

Function test_local_from_tuple

atomic-core/src/change/local.rs:322–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn test_local_from_tuple() {
323 let local: Local = ("test.rs", 10).into();
324 assert_eq!(local.path, "test.rs");
325 assert_eq!(local.line, 10);
326
327 let local: Local = (String::from("test.rs"), 20).into();
328 assert_eq!(local.path, "test.rs");
329 assert_eq!(local.line, 20);
330 }
331
332 #[test]
333 fn test_local_equality() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected