Class: SpecGuard::RSpec::IngestCLI::LineResult

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#ci_run_idObject

Returns the value of attribute ci_run_id

Returns:

  • (Object)

    the current value of ci_run_id



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def ci_run_id
  @ci_run_id
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def code
  @code
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def detail
  @detail
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def number
  @number
end

#reasonsObject

Returns the value of attribute reasons

Returns:

  • (Object)

    the current value of reasons



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def reasons
  @reasons
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def status
  @status
end

#test_run_idObject

Returns the value of attribute test_run_id

Returns:

  • (Object)

    the current value of test_run_id



312
313
314
# File 'lib/specguard/rspec/ingest_cli.rb', line 312

def test_run_id
  @test_run_id
end