github.com/jaredallard/cmdexec
Package cmdexec provides a way to execute commands using the exec package while supporting mocking for testing purposes. The default behaviour of the package is to simply wrap exec.Command and it's context accepting counterpart, exec.CommandContext. However, when running in tests, the package can be configured to use a mock executor that allows for controlling the output and behaviour of the commands executed for testing purposes.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
9 days ago
v1.4.0
9 days ago
Versions
8
8
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/jaredallard/cmdexec
spec |
| License | LGPL-3.0 |
| Namespace | github.com/jaredallard |
| First Release | over 1 year ago |
| Last Synced | 3 days ago |
Repository
| Stars | 1 on GitHub |
| Forks | 0 on GitHub |
| Commits | 32 |
| Committers | 2 |
| Avg per Author | 16.0 |
| DDS | 0.469 |
Rankings on proxy.golang.org
Overall
Top 6.5%