MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / test_directive_with_empty_key_value

Function test_directive_with_empty_key_value

aiscript-directive/src/lib.rs:323–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322 #[test]
323 fn test_directive_with_empty_key_value() {
324 let directive = parse_single_directive("@validate()").unwrap();
325 assert_eq!(directive.name, "validate");
326 match directive.params {
327 DirectiveParams::KeyValue(params) => {
328 assert!(params.is_empty());
329 }
330 _ => panic!("Expected KeyValue parameters"),
331 }
332 }
333
334 #[test]
335 fn test_invalid_directives() {

Callers

nothing calls this directly

Calls 1

parse_single_directiveFunction · 0.85

Tested by

no test coverage detected