File tree 3 files changed +42
-6
lines changed
3 files changed +42
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ MTAnalysis class >> exampleWithHeatmap [
44
44
| matrix |
45
45
matrix := MTMatrix forClasses: { MyVehicle }.
46
46
matrix build.
47
- matrix generateHeatmap
47
+ matrix generateHeatmapByMethod
48
48
]
49
49
50
50
{ #category : ' *MuTalk-Examples' }
Original file line number Diff line number Diff line change 1
1
Extension { #name : ' MTAnalysis' }
2
2
3
3
{ #category : ' *MuTalk-Utilities' }
4
- MTAnalysis >> generateHeatmap [
4
+ MTAnalysis >> generateHeatmapByClass [
5
5
6
6
| matrix |
7
7
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
9
25
]
10
26
11
27
{ #category : ' *MuTalk-Utilities' }
Original file line number Diff line number Diff line change @@ -213,11 +213,31 @@ MTMatrix >> fillMatrix [
213
213
]
214
214
215
215
{ #category : ' rendering' }
216
- MTMatrix >> generateHeatmap [
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
+
236
+ { #category : ' rendering' }
237
+ MTMatrix >> generateHeatmapWithMutationsGroupedBy: aBlock [
217
238
218
239
| heatmap mutationDictionary testDictionary |
219
- mutationDictionary := mutations groupedBy: [ :mutation |
220
- mutation operator species ].
240
+ mutationDictionary := mutations groupedBy: aBlock.
221
241
testDictionary := testCases groupedBy: #testCaseClass .
222
242
223
243
heatmap := self initializeHeatmap.
You can’t perform that action at this time.
0 commit comments