Skip to content

Commit 7db39f3

Browse files
committed
- style
1 parent 62e6936 commit 7db39f3

9 files changed

Lines changed: 10 additions & 3 deletions

File tree

lib/test_prof/event_prof/rspec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module TestProf
77
module EventProf
88
class RSpecListener # :nodoc:
99
include Logging
10+
1011
using FloatDuration
1112
using StringTruncate
1213

lib/test_prof/factory_doctor/rspec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module TestProf
66
module FactoryDoctor
77
class RSpecListener # :nodoc:
88
include Logging
9+
910
using FloatDuration
1011

1112
SUCCESS_MESSAGE = 'FactoryDoctor says: "Looks good to me!"'

lib/test_prof/factory_prof.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def track(factory, variation:)
160160

161161
def variation_name(variation)
162162
return "-" if variation.empty?
163-
variations_count = variation.to_s.scan(/[\w]+/).size
163+
variations_count = variation.to_s.scan(/\w+/).size
164164
return "[...]" if variations_count > config.variations_limit
165165

166166
variation

lib/test_prof/memory_prof/printer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module TestProf
77
module MemoryProf
88
class Printer
99
include Logging
10+
1011
using StringTruncate
1112

1213
def initialize(tracker)

lib/test_prof/rspec_dissect/rspec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module TestProf
66
module RSpecDissect
77
class Listener # :nodoc:
88
include Logging
9+
910
using FloatDuration
1011

1112
NOTIFICATIONS = %i[

lib/test_prof/stack_prof.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run
7272

7373
@locked = true
7474

75-
log :info, "StackProf#{config.raw? ? " (raw)" : ""} enabled globally: " \
75+
log :info, "StackProf#{" (raw)" if config.raw?} enabled globally: " \
7676
"mode – #{config.mode}, target – #{config.target}"
7777

7878
at_exit { dump("total") } if config.suite?
@@ -125,7 +125,7 @@ def dump(name)
125125

126126
def build_path(name)
127127
TestProf.artifact_path(
128-
"stack-prof-report-#{config.mode}#{config.raw ? "-raw" : ""}-#{name}.dump"
128+
"stack-prof-report-#{config.mode}#{"-raw" if config.raw}-#{name}.dump"
129129
)
130130
end
131131

lib/test_prof/tag_prof/printers/simple.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Printers
77
module Simple # :nodoc: all
88
class << self
99
include TestProf::Logging
10+
1011
using TestProf::FloatDuration
1112

1213
def dump(result)

lib/test_prof/tps_prof/reporter/text.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module TPSProf
88
module Reporter
99
class Text
1010
include Logging
11+
1112
using FloatDuration
1213
using StringTruncate
1314

spec/integrations/fixtures/minitest/before_all_connection_fixture.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
describe "database connection owner" do
1111
describe "with before_all" do
1212
include TestProf::BeforeAll::Minitest
13+
1314
before_all {}
1415

1516
it "uses the connection owned by main thread" do

0 commit comments

Comments
 (0)