Class: Coverband::Adapters::NullStore
- Defined in:
- lib/coverband/adapters/null_store.rb
Overview
NullStore is for benchmarking the impacts of calculating and storing coverage data independent of Coverband/Coverage
Usage: config.store = Coverband::Adapters::NullStore.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 = {}) ⇒ NullStore
constructor
A new instance of NullStore.
- #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 = {}) ⇒ NullStore
Returns a new instance of NullStore.
13 14 15 |
# File 'lib/coverband/adapters/null_store.rb', line 13 def initialize(_opts = {}) super() end |
Instance Method Details
#clear! ⇒ Object
17 18 19 |
# File 'lib/coverband/adapters/null_store.rb', line 17 def clear! # NOOP end |
#coverage(_local_type = nil, opts = {}) ⇒ Object
25 26 27 |
# File 'lib/coverband/adapters/null_store.rb', line 25 def coverage(_local_type = nil, opts = {}) {} end |
#raw_store ⇒ Object
33 34 35 |
# File 'lib/coverband/adapters/null_store.rb', line 33 def raw_store raise NotImplementedError, "NullStore doesn't support raw_store" end |
#save_report(report) ⇒ Object
29 30 31 |
# File 'lib/coverband/adapters/null_store.rb', line 29 def save_report(report) # NOOP end |
#size ⇒ Object
21 22 23 |
# File 'lib/coverband/adapters/null_store.rb', line 21 def size 0 end |