mutant 0.11.29 → 0.11.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e57360ec50ffdef54f132f4764c940caad83a2d3692ac812b95c236cd8ff52d
4
- data.tar.gz: cc69f0948238d888f569caeee901dc9197b620a3693474323a0959212d73fc30
3
+ metadata.gz: 6c9ce21c5e092af5e521c5ef2c0e926e60211ddae0c8b552d5b79180dbc8eb6c
4
+ data.tar.gz: 994dbc55bb97edd121d72aa46a946993e2efcc8642ca0d7dd7d31cdb4cb8fa6e
5
5
  SHA512:
6
- metadata.gz: cf4a364cc90b650a6c9dff90b38fb22aaa54d62f98f3b85ae732894a112f89a72b7c6e81b25fdd051b4436e8b55c58203fa4645a1c471cd5745fd665c7f0418b
7
- data.tar.gz: 27a2195e3cd277816e37970fbbf66ed3d4f5237d9be667345229a9739deebaa45366914c71ce41254b7e0a65ea3e40af6012ddf4f8d654164d5eab904345dcf0
6
+ metadata.gz: 7047e6694559bb810a7b3b7bc1f01e07745a928c166e6964f0b74d8dae3a4900575bbe12bcf98fc0163bef3ee6869fd2b09ec09b46d91920b3de134421811240
7
+ data.tar.gz: cf40b6c4d5c5a4ea37a090f7a874e3a2abfd64ea31d0d2d1c5ae32cb6e8b43c2d4b5c7c8c92be24a54339be87604f66c59a7d5f11061299518cf93fdb1da2e44
@@ -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
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mutant
4
4
  # Current mutant version
5
- VERSION = '0.11.29'
5
+ VERSION = '0.11.30'
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.30
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs