Class: RSpec::FlakeClassifier::Classify::Context
- Inherits:
-
Struct
- Object
- Struct
- RSpec::FlakeClassifier::Classify::Context
- Defined in:
- lib/rspec/flake/classifier/classify/context.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#duration_samples ⇒ Object
Returns the value of attribute duration_samples.
-
#files ⇒ Object
Returns the value of attribute files.
-
#message ⇒ Object
Returns the value of attribute message.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#order_dependent ⇒ Object
Returns the value of attribute order_dependent.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#single_run_passed ⇒ Object
Returns the value of attribute single_run_passed.
-
#sockets ⇒ Object
Returns the value of attribute sockets.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
- #durations ⇒ Object
- #file_list ⇒ Object
- #resource_list ⇒ Object
- #socket_list ⇒ Object
- #text ⇒ Object
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def backtrace @backtrace end |
#duration_samples ⇒ Object
Returns the value of attribute duration_samples
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def duration_samples @duration_samples end |
#files ⇒ Object
Returns the value of attribute files
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def files @files end |
#message ⇒ Object
Returns the value of attribute message
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def @message end |
#metadata ⇒ Object
Returns the value of attribute metadata
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def @metadata end |
#order_dependent ⇒ Object
Returns the value of attribute order_dependent
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def order_dependent @order_dependent end |
#resources ⇒ Object
Returns the value of attribute resources
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def resources @resources end |
#single_run_passed ⇒ Object
Returns the value of attribute single_run_passed
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def single_run_passed @single_run_passed end |
#sockets ⇒ Object
Returns the value of attribute sockets
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def sockets @sockets end |
#source ⇒ Object
Returns the value of attribute source
6 7 8 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 6 def source @source end |
Instance Method Details
#durations ⇒ Object
23 24 25 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 23 def durations Array(duration_samples).map(&:to_f) end |
#file_list ⇒ Object
31 32 33 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 31 def file_list Array(files) end |
#resource_list ⇒ Object
27 28 29 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 27 def resource_list Array(resources) end |
#socket_list ⇒ Object
35 36 37 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 35 def socket_list Array(sockets) end |
#text ⇒ Object
19 20 21 |
# File 'lib/rspec/flake/classifier/classify/context.rb', line 19 def text [, *Array(backtrace), source].compact.join("\n") end |