File tree 3 files changed +41
-7
lines changed
3 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ MTAnalysis >> logger: anObject [
216
216
logger := anObject
217
217
]
218
218
219
- { #category : ' as yet unclassified ' }
219
+ { #category : ' accessing ' }
220
220
MTAnalysis >> methodSize [
221
221
222
222
^ (self modelClasses flatCollect: #methods ) size
Original file line number Diff line number Diff line change
1
+ Extension { #name : ' MTAnalysis' }
2
+
3
+ { #category : ' *MuTalk-Utilities' }
4
+ MTAnalysis >> generateHeatmap [
5
+
6
+ | matrix |
7
+ matrix := MTMatrix new analysis: self .
8
+ matrix generateHeatmap
9
+ ]
10
+
11
+ { #category : ' *MuTalk-Utilities' }
12
+ MTAnalysis >> generateMatrix [
13
+
14
+ | matrix |
15
+ matrix := MTMatrix new analysis: self .
16
+ matrix generateMatrix
17
+ ]
Original file line number Diff line number Diff line change @@ -76,6 +76,17 @@ MTMatrix >> analysis [
76
76
^ analysis
77
77
]
78
78
79
+ { #category : ' accessing' }
80
+ MTMatrix >> analysis: anAnalysis [
81
+
82
+ analysis := anAnalysis.
83
+ testClasses := (anAnalysis testCases groupedBy: [ :testCase |
84
+ testCase testCaseClass ]) keys.
85
+ testCases := analysis testCases.
86
+ mutations := analysis mutations.
87
+ self fillMatrix
88
+ ]
89
+
79
90
{ #category : ' comparing' }
80
91
MTMatrix >> booleanCollection1: collection1 equalsBooleanCollection2: collection2 [
81
92
@@ -100,12 +111,7 @@ MTMatrix >> booleanCollection1: collection1 includesBooleanCollection2: collecti
100
111
MTMatrix >> build [
101
112
102
113
self runAnalysis.
103
- mutations do: [ :mut |
104
- self
105
- at: mut
106
- put:
107
- (testCases collect: [ :test |
108
- (self failuresFor: mut) includes: test ]) ]
114
+ self fillMatrix
109
115
]
110
116
111
117
{ #category : ' accessing' }
@@ -195,6 +201,17 @@ MTMatrix >> failuresFor: aMutation andTestClass: aTestClass [
195
201
testCase testCaseClass = aTestClass ]
196
202
]
197
203
204
+ { #category : ' building' }
205
+ MTMatrix >> fillMatrix [
206
+
207
+ mutations do: [ :mut |
208
+ self
209
+ at: mut
210
+ put:
211
+ (testCases collect: [ :test |
212
+ (self failuresFor: mut) includes: test ]) ]
213
+ ]
214
+
198
215
{ #category : ' rendering' }
199
216
MTMatrix >> generateHeatmap [
200
217
You can’t perform that action at this time.
0 commit comments