jjh42 / mock

Mocking library for Elixir language
MIT License
639 stars 81 forks source link

defdelegate problem #104

Open tim2CF opened 4 years ago

tim2CF commented 4 years ago

Mocks are not working for functions defined with defdelegate expressions:

    pid = self()
    with_mock Process, [:passthrough], alive?: &(&1 != pid) do
      Process.alive?(pid)
      # ==> true (expected false)
    end
larszen commented 3 years ago

Is there a solution for this?