Skip to content
class method

Coverage.supported?

(::Symbol) -> bool
Coverage.supported?(mode) → true or false

Returns true if coverage measurement is supported for the given mode.

The mode should be one of the following symbols: :lines, :oneshot_lines, :branches, :methods, :eval.

Example:

Example
Coverage.supported?(:lines)  #=> true
Coverage.supported?(:all)    #=> false
See also .state .suspend .start also in 4.1 · 3.4 · 3.3 · 3.2