-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcases.json
More file actions
93 lines (93 loc) · 2.96 KB
/
Copy pathcases.json
File metadata and controls
93 lines (93 loc) · 2.96 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"cases": [
{
"name": "empty-scope-matches-everything",
"scope": {},
"expect": [
{ "fqn": "acme::commerce::Order", "matches": true },
{ "fqn": "Order", "matches": true }
]
},
{
"name": "single-star-is-one-segment",
"scope": { "include": ["acme::*"] },
"expect": [
{ "fqn": "acme::Order", "matches": true },
{ "fqn": "acme::commerce::Order", "matches": false },
{ "fqn": "other::Order", "matches": false }
]
},
{
"name": "double-star-is-one-or-more-segments",
"scope": { "include": ["acme::**"] },
"expect": [
{ "fqn": "acme::Order", "matches": true },
{ "fqn": "acme::commerce::Order", "matches": true },
{ "fqn": "acme::commerce::internal::Secret", "matches": true },
{ "fqn": "acme", "matches": false },
{ "fqn": "acmex::Order", "matches": false }
]
},
{
"name": "double-star-in-the-middle",
"scope": { "include": ["acme::**::Order"] },
"expect": [
{ "fqn": "acme::commerce::Order", "matches": true },
{ "fqn": "acme::a::b::Order", "matches": true },
{ "fqn": "acme::Order", "matches": false },
{ "fqn": "acme::commerce::Invoice", "matches": false }
]
},
{
"name": "partial-star-never-crosses-separator",
"scope": { "include": ["acme::Order*"] },
"expect": [
{ "fqn": "acme::Order", "matches": true },
{ "fqn": "acme::OrderLine", "matches": true },
{ "fqn": "acme::deep::OrderLine", "matches": false }
]
},
{
"name": "exclude-applied-after-include",
"scope": { "include": ["acme::**"], "exclude": ["acme::internal::**"] },
"expect": [
{ "fqn": "acme::commerce::Order", "matches": true },
{ "fqn": "acme::internal::Secret", "matches": false }
]
},
{
"name": "exclude-alone-narrows-everything",
"scope": { "exclude": ["acme::internal::**"] },
"expect": [
{ "fqn": "other::Thing", "matches": true },
{ "fqn": "acme::internal::Secret", "matches": false }
]
},
{
"name": "multiple-includes-are-a-union",
"scope": { "include": ["acme::commerce::**", "acme::common::**"] },
"expect": [
{ "fqn": "acme::commerce::Order", "matches": true },
{ "fqn": "acme::common::BaseEntity", "matches": true },
{ "fqn": "acme::billing::Invoice", "matches": false }
]
},
{
"name": "regex-metacharacters-are-literal",
"scope": { "include": ["acme::Order.v2"] },
"expect": [
{ "fqn": "acme::Order.v2", "matches": true },
{ "fqn": "acme::OrderXv2", "matches": false }
]
},
{
"name": "matching-is-case-sensitive",
"scope": { "include": ["acme::Order"] },
"expect": [
{ "fqn": "acme::Order", "matches": true },
{ "fqn": "acme::order", "matches": false },
{ "fqn": "ACME::Order", "matches": false }
]
}
]
}