eproxus / meck

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

Erlang 27 Compatibility with Cover #248

Open arcusfelis opened 1 month ago

arcusfelis commented 1 month 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 1 month ago

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