|
1 |
| -//@ is "$.index[?(@.name=='not')].attrs" [] |
2 |
| -//@ is "$.index[?(@.name=='not')].deprecation" null |
| 1 | +//@ eq .index[] | select(.name == "not") | [.attrs, .deprecation], [[], null] |
3 | 2 | pub fn not() {}
|
4 | 3 |
|
5 |
| -//@ is "$.index[?(@.name=='raw')].attrs" [] |
6 |
| -//@ is "$.index[?(@.name=='raw')].deprecation" '{"since": null, "note": null}' |
| 4 | +//@ eq .index[] | select(.name == "raw") | [.attrs, .deprecation], [[], {"since": null, "note": null}] |
7 | 5 | #[deprecated]
|
8 | 6 | pub fn raw() {}
|
9 | 7 |
|
10 |
| -//@ is "$.index[?(@.name=='equals_string')].attrs" [] |
11 |
| -//@ is "$.index[?(@.name=='equals_string')].deprecation" '{"since": null, "note": "here is a reason"}' |
| 8 | +//@ eq .index[] | select(.name == "equals_string") | [.attrs, .deprecation], [[], {"since": null, "note": "here is a reason"}] |
12 | 9 | #[deprecated = "here is a reason"]
|
13 | 10 | pub fn equals_string() {}
|
14 | 11 |
|
15 |
| -//@ is "$.index[?(@.name=='since')].attrs" [] |
16 |
| -//@ is "$.index[?(@.name=='since')].deprecation" '{"since": "yoinks ago", "note": null}' |
| 12 | +//@ eq .index[] | select(.name == "since") | [.attrs, .deprecation], [[], {"since": "yoinks ago", "note": null}] |
17 | 13 | #[deprecated(since = "yoinks ago")]
|
18 | 14 | pub fn since() {}
|
19 | 15 |
|
20 |
| -//@ is "$.index[?(@.name=='note')].attrs" [] |
21 |
| -//@ is "$.index[?(@.name=='note')].deprecation" '{"since": null, "note": "7"}' |
| 16 | +//@ eq .index[] | select(.name == "note") | [.attrs, .deprecation], [[], {"since": null, "note": "7"}] |
22 | 17 | #[deprecated(note = "7")]
|
23 | 18 | pub fn note() {}
|
24 | 19 |
|
25 |
| -//@ is "$.index[?(@.name=='since_and_note')].attrs" [] |
26 |
| -//@ is "$.index[?(@.name=='since_and_note')].deprecation" '{"since": "tomorrow", "note": "sorry"}' |
| 20 | +//@ eq .index[] | select(.name == "since_and_note") | [.attrs, .deprecation], [[], {"since": "tomorrow", "note": "sorry"}] |
27 | 21 | #[deprecated(since = "tomorrow", note = "sorry")]
|
28 | 22 | pub fn since_and_note() {}
|
29 | 23 |
|
30 |
| -//@ is "$.index[?(@.name=='note_and_since')].attrs" [] |
31 |
| -//@ is "$.index[?(@.name=='note_and_since')].deprecation" '{"since": "a year from tomorrow", "note": "your welcome"}' |
| 24 | +//@ eq .index[] | select(.name == "note_and_since") | [.attrs, .deprecation], [[], {"since": "a year from tomorrow", "note": "your welcome"}] |
32 | 25 | #[deprecated(note = "your welcome", since = "a year from tomorrow")]
|
33 | 26 | pub fn note_and_since() {}
|
34 | 27 |
|
35 |
| -//@ is "$.index[?(@.name=='neither_but_parens')].attrs" [] |
36 |
| -//@ is "$.index[?(@.name=='neither_but_parens')].deprecation" '{"since": null, "note": null}' |
| 28 | +//@ eq .index[] | select(.name == "neither_but_parens") | [.attrs, .deprecation], [[], {"since": null, "note": null}] |
37 | 29 | #[deprecated()]
|
38 | 30 | pub fn neither_but_parens() {}
|
0 commit comments