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

Function test_code_learning_display

atomic-agent/src/transcript/tests.rs:352–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350
351#[test]
352fn test_code_learning_display() {
353 let l = CodeLearning::new("src/auth.rs", Some(42), "Wrong timezone")
354 .with_function("validate_token")
355 .with_category("bug");
356 let s = l.to_string();
357 assert_eq!(s, "src/auth.rs:42 (validate_token) — Wrong timezone [bug]");
358}
359
360#[test]
361fn test_code_learning_display_range() {

Callers

nothing calls this directly

Calls 2

with_categoryMethod · 0.80
with_functionMethod · 0.80

Tested by

no test coverage detected