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

Function test_mock_generator_success

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

Source from the content-addressed store, hash-verified

751
752#[test]
753fn test_mock_generator_success() {
754 let reasoning = TurnReasoning {
755 intent: "test intent".into(),
756 outcome: "test outcome".into(),
757 learnings: Learnings::default(),
758 friction: vec![],
759 open_items: vec![],
760 };
761 let gen = MockGenerator::success(reasoning.clone());
762 let result = gen.generate("transcript", &[]).unwrap();
763 assert_eq!(result.intent, "test intent");
764 assert_eq!(result.outcome, "test outcome");
765}
766
767#[test]
768fn test_mock_generator_failure() {

Callers

nothing calls this directly

Calls 4

successFunction · 0.85
cloneMethod · 0.45
unwrapMethod · 0.45
generateMethod · 0.45

Tested by

no test coverage detected