mutant 0.11.29 → 0.11.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e57360ec50ffdef54f132f4764c940caad83a2d3692ac812b95c236cd8ff52d
4
- data.tar.gz: cc69f0948238d888f569caeee901dc9197b620a3693474323a0959212d73fc30
3
+ metadata.gz: 13cb8348526f16921dc46f4fac79bcac3b1ea0f2384980cf6b640d157426c054
4
+ data.tar.gz: 5b9bee01fb11a0afe8c95b824ed3d0b78c63601c90ff5dda096014c1cff206a1
5
5
  SHA512:
6
- metadata.gz: cf4a364cc90b650a6c9dff90b38fb22aaa54d62f98f3b85ae732894a112f89a72b7c6e81b25fdd051b4436e8b55c58203fa4645a1c471cd5745fd665c7f0418b
7
- data.tar.gz: 27a2195e3cd277816e37970fbbf66ed3d4f5237d9be667345229a9739deebaa45366914c71ce41254b7e0a65ea3e40af6012ddf4f8d654164d5eab904345dcf0
6
+ metadata.gz: 1bc15eb9ea3db3e7062786ea5dda052248f5df7a10c12715d13a183dc9ac6377ba3dc3a96cf35a6603b09e4f4846040f77e6dab70074b07dd228f63d21392687
7
+ data.tar.gz: 5b14e7748c65bd648ccc7e815210dc348deab288e1dbe6f35ba8746fef8c52aa75aa99c6712c58d76bf03b390f4d2d999669779b4142a8c44267bfa1e58953fd
@@ -71,8 +71,12 @@ module Mutant
71
71
  end
72
72
  end
73
73
 
74
+ # rubocop:disable Metrics/MethodLength
75
+ # rubocop:disable Style/MultilineBlockChain
74
76
  def self.setup_integration(env:, mutations:, selected_subjects:)
75
77
  env.record(__method__) do
78
+ hooks = env.hooks
79
+ hooks.run(:setup_integration_pre)
76
80
  Integration.setup(env).fmap do |integration|
77
81
  env.with(
78
82
  integration: integration,
@@ -80,10 +84,12 @@ module Mutant
80
84
  selector: Selector::Expression.new(integration: integration),
81
85
  subjects: selected_subjects
82
86
  )
83
- end
87
+ end.tap { hooks.run(:setup_integration_post) }
84
88
  end
85
89
  end
86
90
  private_class_method :setup_integration
91
+ # rubocop:enable Metrics/MethodLength
92
+ # rubocop:enable Style/MultilineBlockChain
87
93
 
88
94
  def self.load_hooks(env)
89
95
  env.record(__method__) do
data/lib/mutant/hooks.rb CHANGED
@@ -10,6 +10,8 @@ module Mutant
10
10
  mutation_insert_post
11
11
  mutation_insert_pre
12
12
  mutation_worker_process_start
13
+ setup_integration_post
14
+ setup_integration_pre
13
15
  test_worker_process_start
14
16
  ].product([EMPTY_ARRAY]).to_h.transform_values(&:freeze).freeze
15
17
 
@@ -23,7 +23,7 @@ module Mutant
23
23
  )
24
24
  end
25
25
 
26
- # rubocop:disable Metric/MethodLength
26
+ # rubocop:disable Metrics/MethodLength
27
27
  def self.workers(world, config, shared)
28
28
  Array.new(config.jobs) do |index|
29
29
  Worker.start(
@@ -38,7 +38,7 @@ module Mutant
38
38
  end
39
39
  end
40
40
  private_class_method :workers
41
- # rubocop:enable Metric/MethodLength
41
+ # rubocop:enable Metrics/MethodLength
42
42
 
43
43
  def self.shared_state(world, config)
44
44
  {
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mutant
4
4
  # Current mutant version
5
- VERSION = '0.11.29'
5
+ VERSION = '0.11.31'
6
6
  end # Mutant
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.29
4
+ version: 0.11.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-09 00:00:00.000000000 Z
11
+ date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs