push
github
1 of 2 new or added lines in 2 files covered. (50.0%)
2130 existing lines in 341 files now uncovered.2097 of 5211 relevant lines covered (40.24%)
0.4 hits per line
UNCOV
1
|
visualization |
× |
UNCOV
2
|
transformToSpiderData: aSWData |
× |
UNCOV
3
|
|
× |
UNCOV
4
|
| transformedData dataArray maxValue | |
× |
UNCOV
5
|
dataArray := (aSWData collect: [:vector | vector at: 2]) asArray.
|
× |
UNCOV
6
|
maxValue := dataArray max. |
× |
UNCOV
7
|
(maxValue > 100)
|
× |
UNCOV
8
|
ifTrue: [dataArray := dataArray collect: [:each | (each / maxValue) * 100]].
|
× |
UNCOV
9
|
transformedData := SWDataLabeled new add: dataArray.
|
× |
UNCOV
10
|
transformedData dataName: aSWData dataName. |
× |
UNCOV
11
|
(aSWData dimensions < 3)
|
× |
UNCOV
12
|
ifTrue: [transformedData dimensionNames: (aSWData collect: [:vector | vector labelName])] |
× |
UNCOV
13
|
ifFalse: [transformedData dimensionNames: (aSWData dimensionNames)]. |
× |
UNCOV
14
|
|
× |
UNCOV
15
|
^ transformedData |
× |