Alona Enraght-Moony
e6bc4278f2
jsondocck: Parse, don't validate commands.
2024-12-09 21:46:22 +00:00
Zalathar
6f82a95298
Rename command-list.rs to directive-list.rs
2024-10-29 17:39:13 +11:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
León Orell Valerian Liehr
25be41cfb8
Update jsondocck directives to follow ui_test-style
2024-07-19 16:54:16 +02:00
Matthias Krüger
6f43a02c12
Rollup merge of #127309 - its-the-shrimp:jsondocck_add_file_var, r=aDotInTheVoid
...
jsondocck: add `$FILE` built-in variable
This built-in variable will allow accessing the full path to the currently tested file and allow to test things like source code spans generated by rustdoc-json, and that is exactly the reason why I've come up with the idea to add this
[futher discussion on zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/rustdoc-json.20test.20help/near/449039819 )
2024-07-04 18:16:25 +02:00
schvv31n
12f29e991a
added built-in var to jsondocck
2024-07-04 10:18:57 +01:00
Alona Enraght-Moony
ccc8baf08a
jsondocck: Use correct index for error message.
...
If you misused a count command like `@count $some.selector '"T'"`, you would panic with OOB:
```
thread 'main' panicked at src/tools/jsondocck/src/main.rs:76:92:
index out of bounds: the len is 2 but the index is 2
```
Fixing this typo, we now get.
```
Invalid command: Second argument to @count must be a valid usize (got `"T"`) on line 20
```
As some point I want to rewrite this code to avoid indexing in general, but this is a nice small fix.
2024-07-03 19:38:19 +00:00
George Bateman
a0a84429a5
Remove direct dependencies on lazy_static, once_cell and byteorder
...
The functionality of all three crates is now available in the standard library.
2024-04-28 14:35:00 +01:00
klensy
c653bb9a6b
jsondocck: bump jsonpath to 0.3, dropping few dup dependencies
...
changes: https://github.com/freestrings/jsonpath/compare/v0.2.6...v0.3.0
self_cell: bump to 0.10.3 due to RUSTSEC-2023-0070
https://rustsec.org/advisories/RUSTSEC-2023-0070.html
https://github.com/Voultapher/self_cell/issues/49
bump h2 to 0.3.22, dropping few dup crate versions
https://github.com/hyperium/h2/blob/v0.3.22/CHANGELOG.md
2023-11-18 12:56:54 +03:00
Guillaume Gomez
18457ea47d
Allow to have - in the rustdoc-json test file name
2023-07-12 10:45:49 +02:00
DaniPopes
f470c29936
Fix remaining typos
2023-04-10 21:02:49 +02:00
Guillaume Gomez
57c85bd97d
Remove need to give JSON file path
2022-08-18 10:48:06 +02:00
Nixon Enraght-Moony
64f790f030
Jsondocck: New @ismany command
2022-08-12 18:11:55 +01:00
Nixon Enraght-Moony
dc6b5cb9f3
jsondocck: Better error for invalid @count number
2022-03-15 18:34:16 +00:00
Nixon Enraght-Moony
ccef93fb89
jsondocck: better error for when @set matches multiple items
2022-03-15 18:23:07 +00:00
Nixon Enraght-Moony
2d0bb0d4b9
jsondocck: Improved error messages for invalid json value and failed @count check
2022-02-09 16:10:58 +00:00
Mark Rousskov
c746be2219
Migrate to 2021
2021-09-20 22:21:42 -04:00
Jade
3cf820e17d
rfc3052: Remove authors field from Cargo manifests
...
Since RFC 3052 soft deprecated the authors field anyway, hiding it from
crates.io, docs.rs, and making Cargo not add it by default, and it is
not generally up to date/useful information, we should remove it from
crates in this repo.
2021-07-29 14:56:05 -07:00
klensy
5afc594e62
replace lazy_static with once_cell, drop direct dependency on serde
2021-06-01 19:44:10 +03:00
klensy
c63cb014a0
updated shlex for jsondocck
2021-06-01 18:25:36 +03:00
Nixon Enraght-Moony
ce21447c01
Better errors in jsondocck
2021-03-24 16:54:12 +00:00
Nixon Enraght-Moony
5f24798b9e
Improve some jsondocck errors
2021-03-10 22:06:05 +00:00
Nixon Enraght-Moony
4c949a455d
Simplify Error Handling.
2021-02-22 10:33:33 +00:00
Nixon Enraght-Moony
ba22a69d96
Extract string_to_value to its own function
2021-02-21 20:10:57 +00:00
Nixon Enraght-Moony
a22d948eb0
Apply suggestions from code review
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-02-21 19:45:32 +00:00
Nixon Enraght-Moony
dd4b938c7f
Implement using @set values
2021-02-20 01:50:12 +00:00
Nixon Enraght-Moony
cd5f603c31
Implement @set
2021-02-20 01:25:09 +00:00
Nixon Enraght-Moony
a00eb7ee1d
Add @is command to jsondocck
2021-02-20 00:43:02 +00:00
Rune Tynan
c37c421354
fmt
2021-01-23 23:17:31 -05:00
Rune Tynan
351b2acd14
Make bad shlex parsing a pretty error
2021-01-23 23:03:01 -05:00
Rune Tynan
728ffc8c03
Address review v2
2021-01-19 17:02:34 -05:00
Rune Tynan
a3df483974
Shift another panic into an exit
2021-01-19 14:24:40 -05:00
Rune Tynan
66a5714c63
Address review comments
2021-01-19 14:24:39 -05:00
Rune Tynan
7715656edd
Add jsondocck tool, and use it for rustdoc JSON
2021-01-19 14:24:25 -05:00