Class: TestBench::Run::Summary::FileTotals
- Inherits:
-
Struct
- Object
- Struct
- TestBench::Run::Summary::FileTotals
- Defined in:
- lib/test_bench/run/summary.rb
Instance Attribute Summary collapse
-
#aborted_count ⇒ Object
Returns the value of attribute aborted_count.
-
#attempted_count ⇒ Object
Returns the value of attribute attempted_count.
-
#completed_count ⇒ Object
Returns the value of attribute completed_count.
-
#not_found_count ⇒ Object
Returns the value of attribute not_found_count.
Class Method Summary collapse
Instance Method Summary collapse
- #aborted ⇒ Object
- #aborted? ⇒ Boolean
- #attempted ⇒ Object
- #completed ⇒ Object
- #not_found ⇒ Object
- #not_found? ⇒ Boolean
- #record_file_aborted ⇒ Object
- #record_file_completed ⇒ Object
- #record_file_not_found ⇒ Object
- #record_file_queued ⇒ Object
Instance Attribute Details
#aborted_count ⇒ Object
Returns the value of attribute aborted_count
427 428 429 |
# File 'lib/test_bench/run/summary.rb', line 427 def aborted_count @aborted_count end |
#attempted_count ⇒ Object
Returns the value of attribute attempted_count
427 428 429 |
# File 'lib/test_bench/run/summary.rb', line 427 def attempted_count @attempted_count end |
#completed_count ⇒ Object
Returns the value of attribute completed_count
427 428 429 |
# File 'lib/test_bench/run/summary.rb', line 427 def completed_count @completed_count end |
#not_found_count ⇒ Object
Returns the value of attribute not_found_count
427 428 429 |
# File 'lib/test_bench/run/summary.rb', line 427 def not_found_count @not_found_count end |
Class Method Details
.initial ⇒ Object
428 429 430 |
# File 'lib/test_bench/run/summary.rb', line 428 def self.initial new(0, 0, 0, 0) end |
Instance Method Details
#aborted ⇒ Object
461 462 463 |
# File 'lib/test_bench/run/summary.rb', line 461 def aborted "%i aborted" % aborted_count end |
#aborted? ⇒ Boolean
457 458 459 |
# File 'lib/test_bench/run/summary.rb', line 457 def aborted? aborted_count > 0 end |
#attempted ⇒ Object
449 450 451 |
# File 'lib/test_bench/run/summary.rb', line 449 def attempted "%i file#{'s' if attempted_count != 1}" % attempted_count end |
#completed ⇒ Object
453 454 455 |
# File 'lib/test_bench/run/summary.rb', line 453 def completed "%i completed" % completed_count end |
#not_found ⇒ Object
469 470 471 |
# File 'lib/test_bench/run/summary.rb', line 469 def not_found "%i not found" % not_found_count end |
#not_found? ⇒ Boolean
465 466 467 |
# File 'lib/test_bench/run/summary.rb', line 465 def not_found? not_found_count > 0 end |
#record_file_aborted ⇒ Object
440 441 442 |
# File 'lib/test_bench/run/summary.rb', line 440 def record_file_aborted self.aborted_count += 1 end |
#record_file_completed ⇒ Object
436 437 438 |
# File 'lib/test_bench/run/summary.rb', line 436 def record_file_completed self.completed_count += 1 end |
#record_file_not_found ⇒ Object
444 445 446 447 |
# File 'lib/test_bench/run/summary.rb', line 444 def record_file_not_found self.attempted_count += 1 self.not_found_count += 1 end |
#record_file_queued ⇒ Object
432 433 434 |
# File 'lib/test_bench/run/summary.rb', line 432 def record_file_queued self.attempted_count += 1 end |