Class: SpecGuard::RSpec::IngestCLI::LineResult
- Inherits:
-
Struct
- Object
- Struct
- SpecGuard::RSpec::IngestCLI::LineResult
- Defined in:
- lib/specguard/rspec/ingest_cli.rb
Overview
What happened to one line of the file. number is its 1-based position
in the file as given, counting the blank lines that were skipped, so
the report addresses the same lines an editor does and a partially
accepted file can be resumed from rather than blindly re-sent.
detail is the flattened one-line rendering the text report prints, and
code and reasons are the two structured facts flattening it destroys
— the numeric HTTP status, and the whole array off
Transport::Result rather than the three Transport::Result#reason has
room for. They are carried rather than derived because a document cannot
be reconstructed from prose: and 19997 more is not the 19,997.
reasons is whatever there is to say about why this line did not land,
as it arrived: the platform's own strings on a refusal (verbatim,
including a nil where the body said nothing readable), the parse
problem where the line was never a run, the exception's rendering where
nothing reached the endpoint, and [] on an acceptance. Normalising it
to a list of strings is SpecGuard::RSpec::IngestReporter's job, because that guarantee
is the document's rather than this struct's.
Instance Attribute Summary collapse
-
#ci_run_id ⇒ Object
Returns the value of attribute ci_run_id.
-
#code ⇒ Object
Returns the value of attribute code.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#number ⇒ Object
Returns the value of attribute number.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#status ⇒ Object
Returns the value of attribute status.
-
#test_run_id ⇒ Object
Returns the value of attribute test_run_id.
Instance Attribute Details
#ci_run_id ⇒ Object
Returns the value of attribute ci_run_id
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def ci_run_id @ci_run_id end |
#code ⇒ Object
Returns the value of attribute code
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def code @code end |
#detail ⇒ Object
Returns the value of attribute detail
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def detail @detail end |
#number ⇒ Object
Returns the value of attribute number
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def number @number end |
#reasons ⇒ Object
Returns the value of attribute reasons
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def reasons @reasons end |
#status ⇒ Object
Returns the value of attribute status
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def status @status end |
#test_run_id ⇒ Object
Returns the value of attribute test_run_id
312 313 314 |
# File 'lib/specguard/rspec/ingest_cli.rb', line 312 def test_run_id @test_run_id end |