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:734–742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

with_categoryMethod · 0.80
with_functionMethod · 0.80

Tested by

no test coverage detected