From: "mame (Yusuke Endoh)" Date: 2022-09-28T14:18:41+00:00 Subject: [ruby-core:110124] [Ruby master Bug#19026] Add `Coverage.supported?(x)` to detect support for `eval` coverage flag. Issue #19026 has been updated by mame (Yusuke Endoh). I think it is reasonable to have this feature to determine if `Coverage.start(eval: true)` is available. (Note that `Coverage.start(eval: true)` just ignores the keyword in Ruby 3.1 or before.) @ioquatix I would like you to merge the PR to restore the continuous coverage measurement. If there is anyone who has an opinion against this feature, feel free to add a comment. ---------------------------------------- Bug #19026: Add `Coverage.supported?(x)` to detect support for `eval` coverage flag. https://bugs.ruby-lang.org/issues/19026#change-99380 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Introduce the following interface: ``` Coverage.supported?(eval) -> true/false ``` We can also check `lines` `branches` and `methods`? -- https://bugs.ruby-lang.org/ Unsubscribe: