https://github.com/wfernandes/clitablematcher
Gomega matcher to match tables used in the CF CLI
https://github.com/wfernandes/clitablematcher
golang gomega testing
Last synced: 11 months ago
JSON representation
Gomega matcher to match tables used in the CF CLI
- Host: GitHub
- URL: https://github.com/wfernandes/clitablematcher
- Owner: wfernandes
- License: mit
- Created: 2017-12-14T06:10:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T02:02:37.000Z (over 8 years ago)
- Last Synced: 2025-03-18T07:45:08.290Z (over 1 year ago)
- Topics: golang, gomega, testing
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CF CLI Table Gomega Matcher
The [Cloud Foundry CLI][cf_cli] contains the `terminal.Table` type in order to print
output in table format onto the terminal.
In order to test the terminal output easily, the `ContainsCLITable` [gomega][gomega] matcher
can be used to verify if the output contains the specified table format.
See the tests or [the sample](/sample/main.go) for example usages.
### Tests
```bash
go test ./... -race
```
[cf_cli]: https://github.com/cloudfoundry/cli
[gomega]: http://onsi.github.io/gomega/