Class: Coverband::Adapters::StdoutStore
- Defined in:
- lib/coverband/adapters/stdout_store.rb
Overview
StdoutStore is for testing and development
Usage: config.store = Coverband::Adapters::StdoutStore.new
Constant Summary
Constants inherited from Base
Base::ABSTRACT_KEY, Base::DATA_KEY, Base::FILE_HASH, Base::FIRST_UPDATED_KEY, Base::LAST_UPDATED_KEY
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #clear! ⇒ Object
- #coverage(_local_type = nil, opts = {}) ⇒ Object
-
#initialize(_opts = {}) ⇒ StdoutStore
constructor
A new instance of StdoutStore.
- #raw_store ⇒ Object
- #save_report(report) ⇒ Object
- #size ⇒ Object
Methods inherited from Base
#clear_file!, #covered_files, #get_coverage_report, #save_coverage, #size_in_mib
Constructor Details
#initialize(_opts = {}) ⇒ StdoutStore
Returns a new instance of StdoutStore.
12 13 14 |
# File 'lib/coverband/adapters/stdout_store.rb', line 12 def initialize(_opts = {}) super() end |
Instance Method Details
#clear! ⇒ Object
16 17 18 |
# File 'lib/coverband/adapters/stdout_store.rb', line 16 def clear! # NOOP end |
#coverage(_local_type = nil, opts = {}) ⇒ Object
24 25 26 |
# File 'lib/coverband/adapters/stdout_store.rb', line 24 def coverage(_local_type = nil, opts = {}) {} end |
#raw_store ⇒ Object
32 33 34 |
# File 'lib/coverband/adapters/stdout_store.rb', line 32 def raw_store raise NotImplementedError, "StdoutStore doesn't support raw_store" end |
#save_report(report) ⇒ Object
28 29 30 |
# File 'lib/coverband/adapters/stdout_store.rb', line 28 def save_report(report) $stdout.puts(report.to_json) end |
#size ⇒ Object
20 21 22 |
# File 'lib/coverband/adapters/stdout_store.rb', line 20 def size 0 end |