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

Function test_code_learning_minimal

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

Source from the content-addressed store, hash-verified

328
329#[test]
330fn test_code_learning_minimal() {
331 let l = CodeLearning::new("file.rs", Some(42), "Found a bug");
332 assert_eq!(l.path, "file.rs");
333 assert_eq!(l.line, Some(42));
334 assert_eq!(l.finding, "Found a bug");
335 assert!(l.function.is_none());
336 assert!(l.category.is_none());
337 assert!(!l.is_anchored());
338}
339
340#[test]
341fn test_code_learning_builder() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected