Skip to content

Instantly share code, notes, and snippets.

@mostlyobvious
Created January 12, 2024 12:19
Show Gist options
  • Save mostlyobvious/4a122cfb34241d87259cbdce839292b4 to your computer and use it in GitHub Desktop.
Save mostlyobvious/4a122cfb34241d87259cbdce839292b4 to your computer and use it in GitHub Desktop.
Coverband: detected SimpleCov in test Env, allowing it to start Coverage
Coverband: to ensure no error logs or missing Coverage call `SimpleCov.start` prior to requiring Coverband
E, [2024-01-12T13:17:58.428001 #82678] ERROR -- : coverage failed to store
E, [2024-01-12T13:17:58.428035 #82678] ERROR -- : Coverband Error: #<RuntimeError: coverage measurement is not enabled> coverage measurement is not enabled
E, [2024-01-12T13:17:58.830948 #82678] ERROR -- : coverage failed to store
E, [2024-01-12T13:17:58.830980 #82678] ERROR -- : Coverband Error: #<RuntimeError: coverage measurement is not enabled> coverage measurement is not enabled
Module#name from: REXML::Functions raised an error: #<NoMethodError: undefined method `[]' for nil:NilClass>. Fix your lib to follow normal ruby semantics!
{Module,Class}#name should return resolvable constant name as String or nil
Class#name from: Faker::Travel::Airport raised an error: #<ArgumentError: missing keywords: :size, :region>. Fix your lib to follow normal ruby semantics!
{Module,Class}#name should return resolvable constant name as String or nil
Mutant environment:
Matcher: #<Mutant::Matcher::Config subjects: [Domains::Underwriting::Services::RoofAgeService#roof_age_info]>
Integration: rspec
Jobs: 8
Includes: ["spec"]
Requires: ["./config/environment"]
Operators: light
Subjects: 1
All-Tests: 14808
Available-Tests: 14808
Selected-Tests: 1
Tests/Subject: 1.00 avg
Mutations: 156
progress: 00/156 alive: 0 runtime: 1.09s killtime: 0.00s mutations/s: 0.00
progress: 00/156 alive: 0 runtime: 2.11s killtime: 0.00s mutations/s: 0.00
progress: 00/156 alive: 0 runtime: 3.11s killtime: 0.00s mutations/s: 0.00
progress: 08/156 alive: 1 runtime: 4.11s killtime: 14.10s mutations/s: 1.95
progress: 08/156 alive: 1 runtime: 5.12s killtime: 14.10s mutations/s: 1.56
progress: 09/156 alive: 2 runtime: 6.12s killtime: 15.09s mutations/s: 1.47
progress: 16/156 alive: 3 runtime: 7.12s killtime: 22.92s mutations/s: 2.25
progress: 16/156 alive: 3 runtime: 8.13s killtime: 22.92s mutations/s: 1.97
progress: 17/156 alive: 3 runtime: 9.13s killtime: 23.97s mutations/s: 1.86
progress: 24/156 alive: 7 runtime: 10.13s killtime: 31.96s mutations/s: 2.37
progress: 25/156 alive: 7 runtime: 11.13s killtime: 32.94s mutations/s: 2.25
progress: 28/156 alive: 7 runtime: 12.14s killtime: 36.48s mutations/s: 2.31
progress: 32/156 alive: 9 runtime: 13.14s killtime: 41.33s mutations/s: 2.44
progress: 33/156 alive: 9 runtime: 14.14s killtime: 42.63s mutations/s: 2.33
progress: 33/156 alive: 9 runtime: 15.14s killtime: 42.63s mutations/s: 2.18
progress: 40/156 alive: 12 runtime: 16.15s killtime: 52.25s mutations/s: 2.48
progress: 40/156 alive: 12 runtime: 17.15s killtime: 52.25s mutations/s: 2.33
progress: 41/156 alive: 12 runtime: 18.15s killtime: 54.28s mutations/s: 2.26
progress: 45/156 alive: 13 runtime: 19.16s killtime: 60.46s mutations/s: 2.35
progress: 48/156 alive: 15 runtime: 20.16s killtime: 65.37s mutations/s: 2.38
progress: 49/156 alive: 16 runtime: 21.16s killtime: 66.91s mutations/s: 2.32
progress: 50/156 alive: 16 runtime: 22.17s killtime: 68.25s mutations/s: 2.26
progress: 56/156 alive: 16 runtime: 23.19s killtime: 78.26s mutations/s: 2.42
progress: 57/156 alive: 16 runtime: 24.19s killtime: 80.16s mutations/s: 2.36
progress: 58/156 alive: 17 runtime: 25.20s killtime: 81.70s mutations/s: 2.30
progress: 64/156 alive: 20 runtime: 26.20s killtime: 90.48s mutations/s: 2.44
progress: 64/156 alive: 20 runtime: 27.21s killtime: 90.48s mutations/s: 2.35
progress: 66/156 alive: 22 runtime: 28.21s killtime: 93.64s mutations/s: 2.34
progress: 69/156 alive: 25 runtime: 29.21s killtime: 97.90s mutations/s: 2.36
progress: 72/156 alive: 26 runtime: 30.22s killtime: 102.58s mutations/s: 2.38
progress: 74/156 alive: 27 runtime: 31.22s killtime: 105.77s mutations/s: 2.37
progress: 76/156 alive: 27 runtime: 32.22s killtime: 108.48s mutations/s: 2.36
progress: 80/156 alive: 29 runtime: 33.22s killtime: 114.83s mutations/s: 2.41
progress: 82/156 alive: 30 runtime: 34.22s killtime: 118.00s mutations/s: 2.40
progress: 84/156 alive: 31 runtime: 35.24s killtime: 120.84s mutations/s: 2.38
progress: 88/156 alive: 31 runtime: 36.24s killtime: 126.89s mutations/s: 2.43
progress: 89/156 alive: 31 runtime: 37.24s killtime: 128.58s mutations/s: 2.39
progress: 92/156 alive: 31 runtime: 38.24s killtime: 132.88s mutations/s: 2.41
progress: 93/156 alive: 32 runtime: 39.26s killtime: 134.26s mutations/s: 2.37
progress: 97/156 alive: 33 runtime: 40.27s killtime: 140.21s mutations/s: 2.41
progress: 98/156 alive: 33 runtime: 41.27s killtime: 141.77s mutations/s: 2.37
progress: 101/156 alive: 36 runtime: 42.27s killtime: 146.60s mutations/s: 2.39
progress: 104/156 alive: 36 runtime: 43.27s killtime: 151.59s mutations/s: 2.40
progress: 105/156 alive: 36 runtime: 44.27s killtime: 153.33s mutations/s: 2.37
progress: 106/156 alive: 36 runtime: 45.28s killtime: 155.09s mutations/s: 2.34
progress: 108/156 alive: 37 runtime: 46.29s killtime: 158.44s mutations/s: 2.33
progress: 109/156 alive: 37 runtime: 47.29s killtime: 160.43s mutations/s: 2.30
progress: 112/156 alive: 38 runtime: 48.30s killtime: 167.31s mutations/s: 2.32
progress: 112/156 alive: 38 runtime: 49.30s killtime: 167.31s mutations/s: 2.27
progress: 113/156 alive: 38 runtime: 50.30s killtime: 170.44s mutations/s: 2.25
progress: 114/156 alive: 39 runtime: 51.31s killtime: 173.46s mutations/s: 2.22
progress: 114/156 alive: 39 runtime: 52.49s killtime: 173.46s mutations/s: 2.17
progress: 114/156 alive: 39 runtime: 53.58s killtime: 173.46s mutations/s: 2.13
progress: 115/156 alive: 39 runtime: 54.62s killtime: 177.51s mutations/s: 2.11
progress: 116/156 alive: 40 runtime: 55.64s killtime: 181.90s mutations/s: 2.08
progress: 117/156 alive: 40 runtime: 56.65s killtime: 188.64s mutations/s: 2.07
progress: 120/156 alive: 41 runtime: 57.66s killtime: 206.59s mutations/s: 2.08
progress: 122/156 alive: 41 runtime: 58.67s killtime: 217.61s mutations/s: 2.08
progress: 124/156 alive: 41 runtime: 59.67s killtime: 223.09s mutations/s: 2.08
progress: 128/156 alive: 41 runtime: 60.67s killtime: 230.25s mutations/s: 2.11
progress: 130/156 alive: 41 runtime: 61.67s killtime: 233.43s mutations/s: 2.11
progress: 130/156 alive: 41 runtime: 62.67s killtime: 233.43s mutations/s: 2.07
progress: 132/156 alive: 41 runtime: 63.67s killtime: 237.56s mutations/s: 2.07
progress: 136/156 alive: 43 runtime: 64.68s killtime: 244.89s mutations/s: 2.10
progress: 138/156 alive: 45 runtime: 65.68s killtime: 248.26s mutations/s: 2.10
progress: 140/156 alive: 47 runtime: 66.68s killtime: 251.48s mutations/s: 2.10
progress: 144/156 alive: 51 runtime: 67.68s killtime: 258.70s mutations/s: 2.13
progress: 146/156 alive: 52 runtime: 68.69s killtime: 262.23s mutations/s: 2.13
progress: 146/156 alive: 52 runtime: 69.69s killtime: 262.23s mutations/s: 2.09
progress: 148/156 alive: 54 runtime: 70.70s killtime: 265.87s mutations/s: 2.09
progress: 152/156 alive: 58 runtime: 71.70s killtime: 273.56s mutations/s: 2.12
progress: 155/156 alive: 61 runtime: 72.70s killtime: 278.53s mutations/s: 2.13
Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48
- rspec:6786:./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174/Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:7e229
-----------------------
Killfork: #<Process::Status: pid 82711 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.52848 seconds, 33.3% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.52848 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.59 seconds (files took 8.04 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,22 @@
def roof_age_info(quote)
- unless quote
- return nil
- end
+ nil
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:bdd5e
-----------------------
Killfork: #<Process::Status: pid 82718 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.38663 seconds, 42.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.38663 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 0.90737 seconds (files took 11.4 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
- return nil
+ nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:f38ac
-----------------------
Killfork: #<Process::Status: pid 82714 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.35731 seconds, 36.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.35731 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 0.98808 seconds (files took 11.39 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
- unless quote
+ unless true
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:339ca
-----------------------
Killfork: #<Process::Status: pid 82725 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.3725 seconds, 39.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.3725 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 0.95038 seconds (files took 14.33 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
- quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
+ quote_uw_data = get_roof_age_from_uw_data(nil)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:ff182
-----------------------
Killfork: #<Process::Status: pid 82723 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.40969 seconds, 40.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.40969 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.01 seconds (files took 14.29 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
- quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
+ quote_uw_data = quote.uw_data_id
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:aba84
-----------------------
Killfork: #<Process::Status: pid 82722 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.41464 seconds, 38.9% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.41464 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.06 seconds (files took 14.24 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
- quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
+ quote_uw_data = nil
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:2a779
-----------------------
Killfork: #<Process::Status: pid 82726 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.4046 seconds, 37.5% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.4046 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.08 seconds (files took 14.31 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
- quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
+ quote_uw_data = get_roof_age_from_uw_data(quote)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:56b45
-----------------------
Killfork: #<Process::Status: pid 82733 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.39126 seconds, 35.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.39126 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.09 seconds (files took 17.15 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(nil, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:b9a6d
-----------------------
Killfork: #<Process::Status: pid 82734 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.3924 seconds, 34.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.3924 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.14 seconds (files took 17.16 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:57195
-----------------------
Killfork: #<Process::Status: pid 82743 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.55835 seconds, 42.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.55835 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.33 seconds (files took 20.16 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, nil, quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:808c4
-----------------------
Killfork: #<Process::Status: pid 82744 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.51389 seconds, 38.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.51389 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.33 seconds (files took 20.29 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote, quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:deea7
-----------------------
Killfork: #<Process::Status: pid 82745 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.54165 seconds, 41.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.54165 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.32 seconds (files took 20.3 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, :roof_updated_year, quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:2d3b7
-----------------------
Killfork: #<Process::Status: pid 82750 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.56726 seconds, 43.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.56726 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.3 seconds (files took 23.09 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year__mutant__), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:20535
-----------------------
Killfork: #<Process::Status: pid 82753 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.7001 seconds, 45.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.7001 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.55 seconds (files took 23.7 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote)
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:444a7
-----------------------
Killfork: #<Process::Status: pid 82754 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.69598 seconds, 46.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.69598 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.49 seconds (files took 23.78 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), true)
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:1f656
-----------------------
Killfork: #<Process::Status: pid 82756 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.43067 seconds, 30.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.43067 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.42 seconds (files took 25.19 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
- user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
+ user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), :risk_roof_age_main_flow)
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:65f03
-----------------------
Killfork: #<Process::Status: pid 82765 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.57259 seconds, 39.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.57259 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.45 seconds (files took 29.33 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
- quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
+ quote_uw_vendor_roof_age = nil
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:d7700
-----------------------
Killfork: #<Process::Status: pid 82767 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.5519 seconds, 40.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.5519 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.37 seconds (files took 30.15 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
- quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
+ quote_uw_vendor_roof_age = quote_uw_data
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:204c3
-----------------------
Killfork: #<Process::Status: pid 82771 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.54298 seconds, 40.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.54298 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.34 seconds (files took 30.63 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ nil
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:641c4
-----------------------
Killfork: #<Process::Status: pid 82772 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.55023 seconds, 41.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.55023 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.33 seconds (files took 30.63 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source__mutant__ = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:11e9e
-----------------------
Killfork: #<Process::Status: pid 82773 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.66147 seconds, 41.9% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.66147 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.58 seconds (files took 31.81 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (nil)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:6710c
-----------------------
Killfork: #<Process::Status: pid 82774 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.52621 seconds, 37.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.52621 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.39 seconds (files took 32.62 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:9f687
-----------------------
Killfork: #<Process::Status: pid 82775 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.52658 seconds, 40.9% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.52658 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.29 seconds (files took 33.43 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:0ef4d
-----------------------
Killfork: #<Process::Status: pid 82776 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.49519 seconds, 37.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.49519 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.31 seconds (files took 33.46 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source && Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:e1fcd
-----------------------
Killfork: #<Process::Status: pid 82777 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.58148 seconds, 42.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.58148 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.38 seconds (files took 33.78 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (nil || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:de7f0
-----------------------
Killfork: #<Process::Status: pid 82778 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.54612 seconds, 40.5% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.54612 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.35 seconds (files took 33.93 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (quote_uw_data || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:8b79d
-----------------------
Killfork: #<Process::Status: pid 82781 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.71418 seconds, 45.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.71418 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.57 seconds (files took 35.11 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
- quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
+ quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || nil)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:60373
-----------------------
Killfork: #<Process::Status: pid 82786 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.55376 seconds, 39.5% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.55376 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.4 seconds (files took 37.31 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
- if user_roof_age.present?
+ if user_roof_age
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:2e25b
-----------------------
Killfork: #<Process::Status: pid 82787 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.67795 seconds, 43.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.67795 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.57 seconds (files took 37.39 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
- if user_roof_age.present?
+ if true
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:589f6
-----------------------
Killfork: #<Process::Status: pid 82789 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.676 seconds, 43.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.676 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.57 seconds (files took 38.39 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
- if user_roof_age.present?
+ if self.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:bd704
-----------------------
Killfork: #<Process::Status: pid 82791 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.57882 seconds, 44.3% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.57882 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.31 seconds (files took 39.77 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,19 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
- if user_roof_age.present?
- user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
- user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
- source = if user_answer_same_as_vendor_data
- quote_uw_vendor_source
- else
- Source::USER
- end
- return RoofDataModel.new(age: user_roof_age_int, source: source)
- end
+ (user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id); user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int); source = if user_answer_same_as_vendor_data
+ quote_uw_vendor_source
+ else
+ Source::USER
+ end; return RoofDataModel.new(age: user_roof_age_int, source: source))
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:3fe33
-----------------------
Killfork: #<Process::Status: pid 82803 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.52937 seconds, 40.9% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.52937 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.29 seconds (files took 43.43 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
- user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
+ user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: nil)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:c190d
-----------------------
Killfork: #<Process::Status: pid 82804 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.53584 seconds, 40.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.53584 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.32 seconds (files took 43.87 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
- user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
+ user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:25a30
-----------------------
Killfork: #<Process::Status: pid 82809 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.6813 seconds, 45.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.6813 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.51 seconds (files took 46.01 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
- user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
+ user_answer_same_as_vendor_data = (nil)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:8f231
-----------------------
Killfork: #<Process::Status: pid 82810 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.74994 seconds, 49.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.74994 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.53 seconds (files took 46.09 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
- user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
+ user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:a11fb
-----------------------
Killfork: #<Process::Status: pid 82811 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.62264 seconds, 41.5% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.62264 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.5 seconds (files took 46.56 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
- user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
+ user_answer_same_as_vendor_data = (nil == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:6cbc9
-----------------------
Killfork: #<Process::Status: pid 82821 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.69848 seconds, 44.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.69848 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.59 seconds (files took 49.49 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
- source = if user_answer_same_as_vendor_data
+ source = if nil
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:7411c
-----------------------
Killfork: #<Process::Status: pid 82824 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (1.07 seconds, 51.4% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 1.07 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 2.08 seconds (files took 50.75 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
- source = if user_answer_same_as_vendor_data
+ source = if false
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:2bd72
-----------------------
Killfork: #<Process::Status: pid 82827 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (1.56 seconds, 53.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 1.56 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 2.9 seconds (files took 52.42 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
- quote_uw_vendor_source
+ nil
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:92720
-----------------------
Killfork: #<Process::Status: pid 82829 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (2.12 seconds, 49.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 2.12 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 4.26 seconds (files took 53.43 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,20 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
- source = if user_answer_same_as_vendor_data
- quote_uw_vendor_source
- else
- Source::USER
- end
+ source = Source::USER
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:650ea
-----------------------
Killfork: #<Process::Status: pid 82833 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (2.92 seconds, 53.3% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 2.92 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 5.48 seconds (files took 56.14 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,22 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
- source = if user_answer_same_as_vendor_data
- quote_uw_vendor_source
- else
+ source = unless user_answer_same_as_vendor_data
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:cc3d9
-----------------------
Killfork: #<Process::Status: pid 82859 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.65345 seconds, 38.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.65345 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.69 seconds (files took 1 minute 8.32 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,22 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
- return nil
- end
+ nil
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:5b965
-----------------------
Killfork: #<Process::Status: pid 82860 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.59712 seconds, 36.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.59712 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.65 seconds (files took 1 minute 8.39 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless nil
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:28b78
-----------------------
Killfork: #<Process::Status: pid 82861 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.68684 seconds, 42.9% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.68684 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.6 seconds (files took 1 minute 9.28 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless quote_uw_vendor_roof_age
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:53185
-----------------------
Killfork: #<Process::Status: pid 82862 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.61879 seconds, 40.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.61879 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.52 seconds (files took 1 minute 9.54 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless true
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:55594
-----------------------
Killfork: #<Process::Status: pid 82863 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.73624 seconds, 50.5% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.73624 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.46 seconds (files took 1 minute 10.72 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless false
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:aa855
-----------------------
Killfork: #<Process::Status: pid 82864 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.67917 seconds, 43.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.67917 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.55 seconds (files took 1 minute 11.04 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless self.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:3277d
-----------------------
Killfork: #<Process::Status: pid 82865 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.59187 seconds, 37.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.59187 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.59 seconds (files took 1 minute 11.92 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ unless !quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:c1c14
-----------------------
Killfork: #<Process::Status: pid 82867 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.62419 seconds, 39.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.62419 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.6 seconds (files took 1 minute 12.04 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,22 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
- return nil
- end
+ return nil
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:10f27
-----------------------
Killfork: #<Process::Status: pid 82866 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.70237 seconds, 41.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.70237 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.71 seconds (files took 1 minute 11.91 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
- unless quote_uw_vendor_roof_age.present?
+ if quote_uw_vendor_roof_age.present?
return nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:243a2
-----------------------
Killfork: #<Process::Status: pid 82868 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.67964 seconds, 41.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.67964 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.63 seconds (files took 1 minute 12.04 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
- return nil
+ nil
end
RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:bce61
-----------------------
Killfork: #<Process::Status: pid 82870 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.64486 seconds, 39.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.64486 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.62 seconds (files took 1 minute 12.94 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ nil
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:c5f56
-----------------------
Killfork: #<Process::Status: pid 82871 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.72106 seconds, 44.8% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.72106 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.61 seconds (files took 1 minute 14.1 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:41d52
-----------------------
Killfork: #<Process::Status: pid 82872 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.87172 seconds, 48.7% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.87172 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.79 seconds (files took 1 minute 14.56 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ self.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:e40cf
-----------------------
Killfork: #<Process::Status: pid 82874 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.70741 seconds, 40.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.70741 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.76 seconds (files took 1 minute 15.49 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:37976
-----------------------
Killfork: #<Process::Status: pid 82873 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.85818 seconds, 46.1% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.85818 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.86 seconds (files took 1 minute 15.38 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:d0c42
-----------------------
Killfork: #<Process::Status: pid 82875 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.7156 seconds, 40.2% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.7156 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.78 seconds (files took 1 minute 15.52 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(age: quote_uw_vendor_roof_age)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:22707
-----------------------
Killfork: #<Process::Status: pid 82876 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.66624 seconds, 39.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.66624 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.71 seconds (files took 1 minute 15.6 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(age__mutant__: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:1c0fa
-----------------------
Killfork: #<Process::Status: pid 82877 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.59502 seconds, 38.0% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.59502 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.57 seconds (files took 1 minute 16.31 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(age: nil, source: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:3b2ba
-----------------------
Killfork: #<Process::Status: pid 82878 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.61655 seconds, 37.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.61655 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.64 seconds (files took 1 minute 16.52 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(age: quote_uw_vendor_roof_age, source__mutant__: quote_uw_vendor_source)
end
-----------------------
evil:Domains::Underwriting::Services::RoofAgeService#roof_age_info:/Users/mostlyobvious/Lemonade/lemonade/lib/domains/underwriting/services/roof_age_service.rb:48:ac3fc
-----------------------
Killfork: #<Process::Status: pid 82879 exit 0>
Log messages (combined stderr and stdout):
[killfork]
[killfork] Randomized with seed 26375
[killfork] WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
[killfork] Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
[killfork] .
[killfork]
[killfork] Top 1 slowest examples (0.47465 seconds, 34.6% of total time):
[killfork] Domains::Underwriting::Services::RoofAgeService#roof_age_info returns the roof age from user input if it exists
[killfork] 0.47465 seconds ./spec/lib/domains/underwriting/services/roof_age_service_spec.rb:174
[killfork]
[killfork] Finished in 1.37 seconds (files took 1 minute 17.74 seconds to load)
[killfork] 1 example, 0 failures
[killfork]
[killfork] Randomized with seed 26375
[killfork]
@@ -1,24 +1,24 @@
def roof_age_info(quote)
unless quote
return nil
end
quote_uw_data = get_roof_age_from_uw_data(quote.uw_data_id)
user_roof_age = user_roof_age_input(quote.created_at, quote.answers, quote.get_attribute_from_answers_or_request(:roof_updated_year), quote.has_chat_flag?(:risk_roof_age_main_flow))
quote_uw_vendor_roof_age = quote_uw_data&.vendor_roof_age
quote_uw_vendor_source = (quote_uw_data&.vendor_roof_age_source || Source::NONE)
if user_roof_age.present?
user_roof_age_int = transform_roof_age_from_answers_to_int(roof_age_from_answers: user_roof_age, quote_public_id: quote.encrypted_id)
user_answer_same_as_vendor_data = (quote_uw_vendor_roof_age == user_roof_age_int)
source = if user_answer_same_as_vendor_data
quote_uw_vendor_source
else
Source::USER
end
return RoofDataModel.new(age: user_roof_age_int, source: source)
end
unless quote_uw_vendor_roof_age.present?
return nil
end
- RoofDataModel.new(age: quote_uw_vendor_roof_age, source: quote_uw_vendor_source)
+ RoofDataModel.new(age: quote_uw_vendor_roof_age, source: nil)
end
-----------------------
Mutant environment:
Matcher: #<Mutant::Matcher::Config subjects: [Domains::Underwriting::Services::RoofAgeService#roof_age_info]>
Integration: rspec
Jobs: 8
Includes: ["spec"]
Requires: ["./config/environment"]
Operators: light
Subjects: 1
All-Tests: 14808
Available-Tests: 14808
Selected-Tests: 1
Tests/Subject: 1.00 avg
Mutations: 156
Results: 156
Kills: 95
Alive: 61
Timeouts: 0
Runtime: 72.84s
Killtime: 279.81s
Overhead: -73.97%
Mutations/s: 2.14
Coverage: 60.90%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment