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

Function test_simple_directive

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

Source from the content-addressed store, hash-verified

226
227 #[test]
228 fn test_simple_directive() {
229 let directive = parse_single_directive("@validate").unwrap();
230 assert_eq!(directive.name, "validate");
231 assert!(matches!(directive.params, DirectiveParams::KeyValue(ref map) if map.is_empty()));
232 }
233
234 #[test]
235 fn test_directive_with_array() {

Callers

nothing calls this directly

Calls 1

parse_single_directiveFunction · 0.85

Tested by

no test coverage detected