Class: Coverband::Adapters::StdoutStore
- Inherits:
-
Base
- Object
- Base
- Coverband::Adapters::StdoutStore
show all
- 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
#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 = {}) ⇒ 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!
end
|
#coverage(_local_type = nil, opts = {}) ⇒ Object
28
29
30
|
# File 'lib/coverband/adapters/stdout_store.rb', line 28
def coverage(_local_type = nil, opts = {})
{}
end
|
#migrate! ⇒ Object
24
25
26
|
# File 'lib/coverband/adapters/stdout_store.rb', line 24
def migrate!
raise NotImplementedError, "StdoutStore doesn't support migrations"
end
|
#raw_store ⇒ Object
36
37
38
|
# File 'lib/coverband/adapters/stdout_store.rb', line 36
def raw_store
raise NotImplementedError, "StdoutStore doesn't support raw_store"
end
|
#save_report(report) ⇒ Object
32
33
34
|
# File 'lib/coverband/adapters/stdout_store.rb', line 32
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
|