Add string prefix and suffix matchers

Regular expression matchers would suffice, but regular expressions are always
potential sources of problems.

The implementation could have reused the regular expression matcher, but by
implementing each matcher in its own right, the code structure is simpler and
diagnostic messages are worded in terms of prefixes and suffices. Ease of use
is more important than the cost of a little extra code.

Documentation branch to be updated in a separate commit.
5 files changed
tree: 0b4887c163d58a38fefb42537f3c99adde268690
  1. format/
  2. gbytes/
  3. gexec/
  4. ghttp/
  5. internal/
  6. matchers/
  7. types/
  8. .gitignore
  9. .travis.yml
  10. CHANGELOG.md
  11. gomega_dsl.go
  12. LICENSE
  13. matchers.go
  14. README.md
README.md

Gomega: Ginkgo's Preferred Matcher Library

Build Status

Jump straight to the docs to learn about Gomega, including a list of all available matchers.

To discuss Gomega and get updates, join the google group.

Ginkgo: a BDD Testing Framework for Golang

Learn more about Ginkgo here

License

Gomega is MIT-Licensed

The ConsistOf matcher uses goraph which is embedded in the source to simplify distribution. goraph has an MIT license.