meck icon indicating copy to clipboard operation
meck copied to clipboard

Erlang 27 Compatibility with Cover

Open arcusfelis opened this issue 1 year ago • 1 comments

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

  • Meck version: 0.9.2
  • Erlang version: 27.0

arcusfelis avatar Jul 15 '24 21:07 arcusfelis

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

arcusfelis avatar Jul 17 '24 19:07 arcusfelis