With meck you can easily mock modules in Erlang. You can also perform some
basic validations on the mocked modules, such as making sure no unexpected
exceptions occurred or looking at the call history.
WWW: https://github.com/eproxus/meck
Sorting out some Erlang stuff:
- Rename a few Erlang-related ports using the erlang- prefix; it will avoid
confusion with elixir- ports.
- Remove DOCS and EXAMPLES where not actually useful.
- Simplify RUN_DEPENDS where possible.
- Move textproc/exmpp to devel/erlang-exmpp.
- Add missing R18 compatibility fix for devel/erlang-oserl.
- Upgrade erlang-cuttlefish to 2.0.3.
The idea is that libraries ("deps") have the "erlang-" prefix, while larger
projects (rabbitmq, yaws, couchdb, etc) keep their usual names.
Cleanup.
- Simplify dependencies.
- Use pkg-plist for the README (remove PORTDOCS).
- Add support for DOCS.
- Silence portlint warnings (make makepatch).
Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag. This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.
The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
GH -> GHL
GITHUB -> GITHUB_LEGACY
Differential Revision: https://reviews.freebsd.org/D748
Submitted by: amdmi3
Reviewed by: mat, swills, antoine, bdrewery
With hat: portmgr