about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-reference.js
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-04-13 14:49:44 +0000
committer许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-04-13 14:49:44 +0000
commitb22099d4e0be8819b1cf476d32d02459a594278b (patch)
treec1da3ff25eda9506a7e177b3d5a3cfd4b08d66ae /tests/rustdoc-js-std/parser-reference.js
parente994534242e742d52c7bab0f0637bc4ed14ec90d (diff)
downloadrust-b22099d4e0be8819b1cf476d32d02459a594278b.tar.gz
rust-b22099d4e0be8819b1cf476d32d02459a594278b.zip
run-make-support: introduce macro for common methods to avoid repetition
Add a helper macro for adding common methods to command wrappers. Common
methods include helpers that delegate to `Command` and running methods.

- `arg` and `args` (delegates to `Command`)
- `env`, `env_remove` and `env_clear` (delegates to `Command`)
- `output`, `run` and `run_fail`

This helps to avoid needing to copy-pasta / reimplement these common
methods on a new command wrapper, which hopefully reduces the friction
for run-make test writers wanting to introduce new command wrappers.
Diffstat (limited to 'tests/rustdoc-js-std/parser-reference.js')
0 files changed, 0 insertions, 0 deletions