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

Function test_format_code_learning_full

atomic-agent/src/learnings.rs:732–740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730
731 #[test]
732 fn test_format_code_learning_full() {
733 let learning = CodeLearning::new("f.rs", Some(42), "Bug here")
734 .with_function("main")
735 .with_category("security");
736 assert_eq!(
737 format_code_learning(&learning),
738 "f.rs:42 (main) — Bug here [security]"
739 );
740 }
741
742 // extract_finding
743

Callers

nothing calls this directly

Calls 2

with_categoryMethod · 0.80
with_functionMethod · 0.80

Tested by

no test coverage detected