elixir_mock icon indicating copy to clipboard operation
elixir_mock copied to clipboard

Creates clean, concurrent, inspectable mocks from elixir modules

Results 5 elixir_mock issues
Sort by recently updated
recently updated
newest added

Random module name generation is all fine and dandy, until you want to, say, configure your entire application to use the mock implementation. Then it's useful to be able to...

### Current behaviour All within an exunit test context ```elixir with_mock(mock) = defmock_of RealModule do def is_age_one?(%{age: 1}) do {:ok, "age is one"} end def is_age_one?(%{age: age}) do {:error, "age...

bug

` defmodule MyTest do use ExUnit.Case require Mockex test "fails to compile" do with_mock(mock) = defmock_of GenServer do def start, do: {:ok, self()} end end end ` This will fail...

enhancement

### Currently, if I want to verify that a function with arity 3 was called but I don't care about the number of args, I still have to say ```elixir...

enhancement

### Test ``` refute_called mock.some_fn(Mockex.Matchers.any()) ``` ### Message ``` Did not expect get({:matches, #Function}) to be called but it was. ```

enhancement