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