crude-mutant 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/crude_mutant.rb +2 -2
- data/lib/crude_mutant/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b09a8c4ed5247bdab72147c7fdd912e2d3a9f8d732e2dddcc179f7138513f9
|
4
|
+
data.tar.gz: c6f6d8bc85f9ce982f595d106fdda7246481f85bb6b3e7ccc45a7a9038672ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0726eda365a0c85f9f2321c37fbccb6dbd81d973565f1dc17ffbdb505c9126ab1b6b55c1aecdf50b35fe8b8c3907722e1c4ac95461035d89ad36b7de767c4189
|
7
|
+
data.tar.gz: 7a929bfdf1bb4cb6d197b7958e6c44fe480942b3d051f1c752dad23861fe8e4b0497d710cf09fdc7c918423f6a5160907f3208e2ac6bfb2f88922436a52d6689
|
data/Gemfile.lock
CHANGED
data/lib/crude_mutant.rb
CHANGED
@@ -18,14 +18,14 @@ module CrudeMutant
|
|
18
18
|
class NeutralCaseError < StandardError; end
|
19
19
|
|
20
20
|
class << self
|
21
|
-
def start(file_path, test_command, section:
|
21
|
+
def start(file_path, test_command, section: 0, total_sections: 1, result_printer: :standard, &block)
|
22
22
|
printer_klass = result_printer == :json ? JsonResultPrinter : ResultPrinter
|
23
23
|
|
24
24
|
start_time = Time.now.to_f
|
25
25
|
file = FileLoader.load(file_path)
|
26
26
|
num_lines_in_file = file.lines_in_file
|
27
27
|
section_size = (num_lines_in_file.to_f / total_sections).ceil
|
28
|
-
starting_line_number =
|
28
|
+
starting_line_number = section * section_size - 1
|
29
29
|
stopping_line_number = starting_line_number + section_size
|
30
30
|
|
31
31
|
initial_success = Executor.call(test_command)
|
data/lib/crude_mutant/version.rb
CHANGED