本文简要介绍ruby语言中 Coverage.peek_result
的用法。
用法
peek_result → hash
返回包含文件名作为键和覆盖数组作为值的哈希。这与“Coverage.result(stop: false, clear: false)”相同。
{ "file.rb" => [1, 2, nil], ... }
相关用法
- Ruby Coverage模块用法及代码示例
- Ruby Context.save_history=用法及代码示例
- Ruby Constants模块用法及代码示例
- Ruby Comparable.between?用法及代码示例
- Ruby Complex.arg用法及代码示例
- Ruby ComposedSet类用法及代码示例
- Ruby Continuation类用法及代码示例
- Ruby Complex.abs2用法及代码示例
- Ruby Context.echo_on_assignment?用法及代码示例
- Ruby Complex.angle用法及代码示例
- Ruby Complex.polar用法及代码示例
- Ruby Comment.extract_call_seq用法及代码示例
- Ruby Cookie.new用法及代码示例
- Ruby Comparable.clamp用法及代码示例
- Ruby Complex.to_f用法及代码示例
- Ruby Complex.cmp / numeric用法及代码示例
- Ruby Complex.conj用法及代码示例
- Ruby Converter.primitive_errinfo用法及代码示例
- Ruby Config.get_value用法及代码示例
- Ruby Context.echo?用法及代码示例
- Ruby Command.arguments用法及代码示例
- Ruby Complex类用法及代码示例
- Ruby Complex.infinite?用法及代码示例
- Ruby Complex.abs用法及代码示例
- Ruby Context.echo_on_assignment用法及代码示例
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 Coverage.peek_result。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。