Class: Coverband::Adapters::NullStore
- Inherits:
-
Base
- Object
- Base
- Coverband::Adapters::NullStore
show all
- 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
#type
Instance Method Summary
collapse
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!
end
|
#coverage(_local_type = nil, opts = {}) ⇒ Object
29
30
31
|
# File 'lib/coverband/adapters/null_store.rb', line 29
def coverage(_local_type = nil, opts = {})
{}
end
|
#migrate! ⇒ Object
25
26
27
|
# File 'lib/coverband/adapters/null_store.rb', line 25
def migrate!
raise NotImplementedError, "NullStore doesn't support migrations"
end
|
#raw_store ⇒ Object
37
38
39
|
# File 'lib/coverband/adapters/null_store.rb', line 37
def raw_store
raise NotImplementedError, "NullStore doesn't support raw_store"
end
|
#save_report(report) ⇒ Object
33
34
35
|
# File 'lib/coverband/adapters/null_store.rb', line 33
def save_report(report)
end
|
#size ⇒ Object
21
22
23
|
# File 'lib/coverband/adapters/null_store.rb', line 21
def size
0
end
|