No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
README.md
Vagrantfile
mix.exs
mix.lock

README.md

MockInput

Sample code used in article: Mocking Elixir IO.gets with Agents and More Mocking Elixir IO.gets with Agents

How to use Elixir Agent to produce different output from the same IO.gets() call.

Installation

If one wishes to follow along, the current system setup:

  • Elixir 1.5
  • Erlang version 20

These are the latest at the time of writing.

A repository of all this is available here

To follow in a Vagrant box, install vagrant

$ git clone https://github.com/a-leung/mock_input.git
$ cd mock_input
$ vagrant up
$ vagrant ssh
$ cd /vagrant/
$ mix test

Contact

If there any questions, please contact me directly