Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/valid-rules/uri-encode.json

raw symbols SCIP
1 {
2 "version": "1.3",
3 "parameters": {
4 "TestCaseId": {
5 "type": "string",
6 "required": true,
7 "documentation": "Test case id used to select the test case to use"
8 },
9 "Input": {
10 "type": "string",
11 "required": true,
12 "documentation": "the input used to test uriEncode"
13 }
14 },
15 "rules": [
16 {
17 "documentation": "uriEncode on input",
18 "conditions": [
19 {
20 "fn": "stringEquals",
21 "argv": [
22 "{TestCaseId}",
23 "1"
24 ]
25 },
26 {
27 "fn": "uriEncode",
28 "argv": [
29 "{Input}"
30 ],
31 "assign": "output"
32 }
33 ],
34 "error": "The value is: `{output}`",
35 "type": "error"
36 },
37 {
38 "documentation": "fallback when no tests match",
39 "conditions": [],
40 "error": "No tests matched",
41 "type": "error"
42 }
43 ]
44 }