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

Function test_code_learning_anchored

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

Source from the content-addressed store, hash-verified

371
372#[test]
373fn test_code_learning_anchored() {
374 let mut l = CodeLearning::new("f.rs", Some(1), "test");
375 assert!(!l.is_anchored());
376
377 l._anchor = Some(GraphAnchor {
378 trunk: Some((47, 0)),
379 branches: vec![(47, 12)],
380 leaves: vec![(47, 34)],
381 });
382 assert!(l.is_anchored());
383}
384
385#[test]
386fn test_code_learning_serde_with_anchor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected