Skip to content

Commit b3a8991

Browse files
committed
renamed generateHeatmap methods
1 parent 4e51fa3 commit b3a8991

File tree

3 files changed

+40
-24
lines changed

3 files changed

+40
-24
lines changed

src/MuTalk-Examples/MTAnalysis.extension.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ MTAnalysis class >> exampleWithHeatmap [
4444
| matrix |
4545
matrix := MTMatrix forClasses: { MyVehicle }.
4646
matrix build.
47-
matrix generateHeatmapWithMutationsGroupedByMethod
47+
matrix generateHeatmapByMethod
4848
]
4949

5050
{ #category : '*MuTalk-Examples' }

src/MuTalk-Utilities/MTAnalysis.extension.st

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
Extension { #name : 'MTAnalysis' }
22

33
{ #category : '*MuTalk-Utilities' }
4-
MTAnalysis >> generateHeatmap [
4+
MTAnalysis >> generateHeatmapByClass [
55

66
| matrix |
77
matrix := MTMatrix new analysis: self.
8-
matrix generateHeatmap
8+
matrix generateHeatmapByClass
9+
]
10+
11+
{ #category : '*MuTalk-Utilities' }
12+
MTAnalysis >> generateHeatmapByMethod [
13+
14+
| matrix |
15+
matrix := MTMatrix new analysis: self.
16+
matrix generateHeatmapByMethod
17+
]
18+
19+
{ #category : '*MuTalk-Utilities' }
20+
MTAnalysis >> generateHeatmapByOperator [
21+
22+
| matrix |
23+
matrix := MTMatrix new analysis: self.
24+
matrix generateHeatmapByOperator
925
]
1026

1127
{ #category : '*MuTalk-Utilities' }

src/MuTalk-Utilities/MTMatrix.class.st

+21-21
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,27 @@ MTMatrix >> fillMatrix [
212212
(self failuresFor: mut) includes: test ]) ]
213213
]
214214

215+
{ #category : 'rendering' }
216+
MTMatrix >> generateHeatmapByClass [
217+
218+
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
219+
mutation originalClass ]
220+
]
221+
222+
{ #category : 'rendering' }
223+
MTMatrix >> generateHeatmapByMethod [
224+
225+
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
226+
mutation originalMethod name ]
227+
]
228+
229+
{ #category : 'rendering' }
230+
MTMatrix >> generateHeatmapByOperator [
231+
232+
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
233+
mutation operator species ]
234+
]
235+
215236
{ #category : 'rendering' }
216237
MTMatrix >> generateHeatmapWithMutationsGroupedBy: aBlock [
217238

@@ -232,27 +253,6 @@ MTMatrix >> generateHeatmapWithMutationsGroupedBy: aBlock [
232253
heatmap open
233254
]
234255

235-
{ #category : 'rendering' }
236-
MTMatrix >> generateHeatmapWithMutationsGroupedByClass [
237-
238-
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
239-
mutation originalClass ]
240-
]
241-
242-
{ #category : 'rendering' }
243-
MTMatrix >> generateHeatmapWithMutationsGroupedByMethod [
244-
245-
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
246-
mutation originalMethod name ]
247-
]
248-
249-
{ #category : 'rendering' }
250-
MTMatrix >> generateHeatmapWithMutationsGroupedByOperator [
251-
252-
self generateHeatmapWithMutationsGroupedBy: [ :mutation |
253-
mutation operator species ]
254-
]
255-
256256
{ #category : 'rendering' }
257257
MTMatrix >> generateMatrix [
258258

0 commit comments

Comments
 (0)