loading
Generated 2026-03-17T21:42:25+01:00

All Files ( 100.0% covered at 4.0 hits/line )

1 files in total.
12 relevant lines, 12 lines covered and 0 lines missed. ( 100.0% )
8 total branches, 8 branches covered and 0 branches missed. ( 100.0% )
File % covered Lines Relevant Lines Lines covered Lines missed Avg. Hits / Line Branch Coverage Branches Covered branches Missed branches
condition_coverage/application_fund_review.rb 100.00 % 18 12 12 0 4.00 100.00 % 8 8 0

condition_coverage/application_fund_review.rb

100.0% lines covered

100.0% branches covered

12 relevant lines. 12 lines covered and 0 lines missed.
8 total branches, 8 branches covered and 0 branches missed.
    
  1. 1 Application = Struct.new(:founders_hustling?, :grinding_mode, :space)
  2. 1 def blockchain_relevant?
  3. 1 Date.today.year < 2022
  4. end
  5. 1 def millions_to_invest(application)
  6. 7 count = 0
  7. 7 then: 1 if application.grinding_mode == :performative
  8. 1 else: 6 count = 2
  9. 6 then: 2 else: 4 elsif application.grinding_mode == :real
  10. 2 count = 1
  11. end
  12. 7 then: 3 else: 4 count += 2 if application.founders_hustling?
  13. 7 then: 1 else: 6 count += 2 if application.space == :ai || (application.space == :blockchain && blockchain_relevant?)
  14. 7 count
  15. end