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

Function test_generator_is_object_safe

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

Source from the content-addressed store, hash-verified

776
777#[test]
778fn test_generator_is_object_safe() {
779 let reasoning = TurnReasoning {
780 intent: "i".into(),
781 outcome: "o".into(),
782 learnings: Learnings::default(),
783 friction: vec![],
784 open_items: vec![],
785 };
786 let gen: Box<dyn ReasoningGenerator> = Box::new(MockGenerator::success(reasoning));
787 let result = gen.generate("text", &[]);
788 assert!(result.is_ok());
789}
790
791// try_generate_reasoning (non-fatal wrapper)
792

Callers

nothing calls this directly

Calls 2

successFunction · 0.85
generateMethod · 0.45

Tested by

no test coverage detected