eproxus / meck

A mocking library for Erlang
http://eproxus.github.io/meck
Apache License 2.0
815 stars 231 forks source link

Erlang 27 Compatibility with Cover #248

Open arcusfelis opened 4 months ago

arcusfelis commented 4 months ago

Meck is not compatible with the latest version of cover.erl module in OTP 27. See bug report in OTP: https://github.com/erlang/otp/issues/8661

Reproduction Steps

  1. enable cover
  2. meck load
  3. meck unload
  4. export cover - this will never return.

Expected behavior

Meck unloading covered modules correctly?

Observed behavior

[Describe observed behavior here]

Versions

arcusfelis commented 4 months ago

Pretty sure, it can be because cover now has has_native_coverage/1 function + extra logic for it.