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

Function test_display_line_display_trait

atomic-core/src/diff/display.rs:975–980  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

973
974 #[test]
975 fn test_display_line_display_trait() {
976 let line = DisplayLine::new(LineStatus::Added, b"hello\n", None, Some(1));
977 let s = format!("{}", line);
978 assert!(s.contains("+"));
979 assert!(s.contains("hello"));
980 }
981
982 #[test]
983 fn test_total_lines() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected