diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-31 12:10:22 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-31 12:10:22 +0900 |
| commit | ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e (patch) | |
| tree | 7e4ee6ed3a8268a3ace27f19c739c499885fadb6 /src/_golang | |
| parent | Update 'go mod' completion (diff) | |
| download | zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar.gz zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar.bz2 zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar.lz zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar.xz zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.tar.zst zsh-completions-ef50c3a7b9d3c6f5f369ed749a2d0d113d98050e.zip | |
Update 'go test' completion
Diffstat (limited to 'src/_golang')
| -rw-r--r-- | src/_golang | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/_golang b/src/_golang index a5bf4ff..b2e2445 100644 --- a/src/_golang +++ b/src/_golang @@ -687,7 +687,7 @@ case $state in '*:importpaths:__go_packages' ;; - test) + (test) if [[ $words[$CURRENT] = -test.* ]]; then _arguments \ '-test.bench[run only benchmarks matching regexp]:regexp' \ @@ -746,11 +746,13 @@ case $state in '-memprofile[write a memory profile to file]:mem' \ '-memprofilerate[enable more precise memory profiles]:n' \ '-mutexprofile[write a mutex contention profile to the specified file]:file:_files' \ - '-outputdir[place output files from profiling in output dir]:dir' \ + '-mutexprofilefraction[sample 1 in n stack traces of goroutines holding a contended mutex]:n' \ + '-outputdir[place output files from profiling in output dir]:dir:_path_files -/' \ '-parallel[allow parallel execution of test functions]:n' \ '-run[run tests and examples matching the regular expression]:regexp' \ '-short[tell long-running tests to shorten their run time]' \ '-shuffle[randomize the execution order of tests and benchmarks]:type:(off on)' \ + '-skip[run only tests that do not match the regular expression]:pattern' \ '-test.-[specify options for test running]:test running options:' \ '-timeout[timeout long running tests]:t' \ '-trace[write an execution trace to the specified file]:trace' \ @@ -761,7 +763,7 @@ case $state in '-o[compile test binary to named file]:file:_files' \ '*:importpaths:__go_packages' fi - ;; + ;; (tool) local -a tools=($(go tool)) |
