MCPcopy Create free account
hub / github.com/amber-lang/amber / test_postprocessor_execute_simple_command

Function test_postprocessor_execute_simple_command

src/tests/postprocessor.rs:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26#[test]
27fn test_postprocessor_execute_simple_command() {
28 let cat_pp = PostProcessor::new("test_cat", "cat");
29 let test_input = "Hello World\n";
30
31 let result = cat_pp.execute(test_input.to_string());
32
33 assert!(result.is_ok(), "cat should execute successfully");
34 let output = result.unwrap();
35 assert!(
36 output.trim_end().contains("Hello World"),
37 "output should contain input"
38 );
39}
40
41#[test]
42fn test_postprocessor_execute_with_unavailable_processor() {

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected