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

Function test_code_learning_builder

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

Source from the content-addressed store, hash-verified

339
340#[test]
341fn test_code_learning_builder() {
342 let l = CodeLearning::new("file.rs", Some(42), "Bug")
343 .with_function("validate_token")
344 .with_end_line(50)
345 .with_category("security");
346 assert_eq!(l.function.as_deref(), Some("validate_token"));
347 assert_eq!(l.end_line, Some(50));
348 assert_eq!(l.category.as_deref(), Some("security"));
349}
350
351#[test]
352fn test_code_learning_display() {

Callers

nothing calls this directly

Calls 3

with_categoryMethod · 0.80
with_end_lineMethod · 0.80
with_functionMethod · 0.80

Tested by

no test coverage detected