File: ormatch.json

package info (click to toggle)
golang-github-jmespath-go-jmespath 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, experimental, sid
  • size: 3,564 kB
  • sloc: makefile: 39; sh: 23
file content (59 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[{
    "given":
        {"outer": {"foo": "foo", "bar": "bar", "baz": "baz"}},
     "cases": [
         {
            "expression": "outer.foo || outer.bar",
            "result": "foo"
         },
         {
            "expression": "outer.foo||outer.bar",
            "result": "foo"
         },
         {
            "expression": "outer.bar || outer.baz",
            "result": "bar"
         },
         {
            "expression": "outer.bar||outer.baz",
            "result": "bar"
         },
         {
            "expression": "outer.bad || outer.foo",
            "result": "foo"
         },
         {
            "expression": "outer.bad||outer.foo",
            "result": "foo"
         },
         {
            "expression": "outer.foo || outer.bad",
            "result": "foo"
         },
         {
            "expression": "outer.foo||outer.bad",
            "result": "foo"
         },
         {
            "expression": "outer.bad || outer.alsobad",
            "result": null
         },
         {
            "expression": "outer.bad||outer.alsobad",
            "result": null
         }
     ]
}, {
    "given":
        {"outer": {"foo": "foo", "bool": false, "empty_list": [], "empty_string": ""}},
     "cases": [
         {
            "expression": "outer.empty_string || outer.foo",
            "result": "foo"
         },
         {
            "expression": "outer.nokey || outer.bool || outer.empty_list || outer.empty_string || outer.foo",
            "result": "foo"
         }
     ]
}]