Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions BaselineOfObjectStatistics/BaselineOfObjectStatistics.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #BaselineOfObjectStatistics,
#superclass : #BaselineOf,
#category : #BaselineOfObjectStatistics
#name : 'BaselineOfObjectStatistics',
#superclass : 'BaselineOf',
#category : 'BaselineOfObjectStatistics',
#package : 'BaselineOfObjectStatistics'
}

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfObjectStatistics >> baseline: spec [
<baseline>
spec for: #'common' do: [
Expand All @@ -25,7 +26,7 @@ BaselineOfObjectStatistics >> baseline: spec [

]

{ #category : #accessing }
{ #category : 'accessing' }
BaselineOfObjectStatistics >> projectClass [
^ [ self class environment at: #MetacelloCypressBaselineProject ]
on: NotFound
Expand Down
2 changes: 1 addition & 1 deletion BaselineOfObjectStatistics/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BaselineOfObjectStatistics }
Package { #name : 'BaselineOfObjectStatistics' }
6 changes: 3 additions & 3 deletions ObjectStatistics-NewTools/ObjectStatDimension.extension.st
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Extension { #name : #ObjectStatDimension }
Extension { #name : 'ObjectStatDimension' }

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatDimension >> inspectionTreeItems [
^self sortedSlices
]

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatDimension >> itemsTreeInspectionIn: aBuilder [
<inspectorPresentationOrder: 30 title: 'Metrics'>

Expand Down
6 changes: 3 additions & 3 deletions ObjectStatistics-NewTools/ObjectStatSlice.extension.st
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Extension { #name : #ObjectStatSlice }
Extension { #name : 'ObjectStatSlice' }

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatSlice >> inspectionTreeItems [
^statistics inspectionTreeItems
]

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatSlice >> itemsTreeInspectionIn: aBuilder [
<inspectorPresentationOrder: 30 title: 'Metrics'>

Expand Down
8 changes: 4 additions & 4 deletions ObjectStatistics-NewTools/ObjectStatistics.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #ObjectStatistics }
Extension { #name : 'ObjectStatistics' }

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatistics class >> buildInspectionMetricsTreeFor: anObject in: aBuilder [

^aBuilder newTree
Expand All @@ -10,14 +10,14 @@ ObjectStatistics class >> buildInspectionMetricsTreeFor: anObject in: aBuilder [
yourself
]

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatistics >> inspectionTreeItems [
dimensions size = 1 ifTrue: [ ^dimensions first inspectionTreeItems ].

^dimensions reject: #isEmpty
]

{ #category : #'*ObjectStatistics-NewTools' }
{ #category : '*ObjectStatistics-NewTools' }
ObjectStatistics >> itemsTreeInspectionIn: aBuilder [
<inspectorPresentationOrder: 30 title: 'Metrics'>

Expand Down
2 changes: 1 addition & 1 deletion ObjectStatistics-NewTools/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #'ObjectStatistics-NewTools' }
Package { #name : 'ObjectStatistics-NewTools' }
9 changes: 5 additions & 4 deletions ObjectStatistics-Tests/ObjectStatCounterTests.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #ObjectStatCounterTests,
#superclass : #TestCase,
#category : 'ObjectStatistics-Tests'
#name : 'ObjectStatCounterTests',
#superclass : 'TestCase',
#category : 'ObjectStatistics-Tests',
#package : 'ObjectStatistics-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ObjectStatCounterTests >> testMeasureObjects [

| counter |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #ObjectStatDifferentPropertiesCounterTests,
#superclass : #TestCase,
#category : 'ObjectStatistics-Tests'
#name : 'ObjectStatDifferentPropertiesCounterTests',
#superclass : 'TestCase',
#category : 'ObjectStatistics-Tests',
#package : 'ObjectStatistics-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDifferentPropertiesCounterTests >> testCreationNewMetricForDimension [

| metric actual |
Expand All @@ -16,7 +17,7 @@ ObjectStatDifferentPropertiesCounterTests >> testCreationNewMetricForDimension [
actual measuredProperties should not be: metric measuredProperties
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDifferentPropertiesCounterTests >> testMeasureObjects [

| counter |
Expand All @@ -27,7 +28,7 @@ ObjectStatDifferentPropertiesCounterTests >> testMeasureObjects [
(counter measure: #(#object2)) should be: 1
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDifferentPropertiesCounterTests >> testMeasureObjectsWhenPropertyIsCollection [

| counter |
Expand Down
29 changes: 15 additions & 14 deletions ObjectStatistics-Tests/ObjectStatDimensionTests.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #ObjectStatDimensionTests,
#superclass : #TestCase,
#category : 'ObjectStatistics-Tests'
#name : 'ObjectStatDimensionTests',
#superclass : 'TestCase',
#category : 'ObjectStatistics-Tests',
#package : 'ObjectStatistics-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testCheckThatMetricIsIgnored [

| dimension |
Expand All @@ -17,7 +18,7 @@ ObjectStatDimensionTests >> testCheckThatMetricIsIgnored [
dimension should not be isIgnoreMetric: (ObjectStatMetric named: 'someOtherMetric')
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testConvertingToDimension [

| dimension |
Expand All @@ -26,7 +27,7 @@ ObjectStatDimensionTests >> testConvertingToDimension [
dimension where asObjectStatDimension should be: dimension
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testCopyForSubDimension [

| dimension copy |
Expand All @@ -41,7 +42,7 @@ ObjectStatDimensionTests >> testCopyForSubDimension [
copy slices should beInstanceOf: Dictionary
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testGettingSortedSlices [

| dimension actual stat |
Expand All @@ -60,7 +61,7 @@ ObjectStatDimensionTests >> testGettingSortedSlices [
actual where last coordinate should be: 4.
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testHasAnyObjectsSpecByDefault [

| dimension |
Expand All @@ -69,7 +70,7 @@ ObjectStatDimensionTests >> testHasAnyObjectsSpecByDefault [
(dimension objectsSpec == Any) should be: true
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testHasEmptySlicesByDefault [

| dimension |
Expand All @@ -78,7 +79,7 @@ ObjectStatDimensionTests >> testHasEmptySlicesByDefault [
dimension where slices should be isEmpty
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testHasEmptySubDimensionsByDefault [

| dimension |
Expand All @@ -87,7 +88,7 @@ ObjectStatDimensionTests >> testHasEmptySubDimensionsByDefault [
dimension where subDimensions should be isEmpty
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testObjectsAccumulationShouldSkipObjectsWhichNotSatisfiedSpec [

| dimension slice |
Expand All @@ -102,7 +103,7 @@ ObjectStatDimensionTests >> testObjectsAccumulationShouldSkipObjectsWhichNotSati
slice should not receive accumulate: #object
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testObjectsAccumulationWhenNoSlicesExist [

| dimension overallStat slice |
Expand All @@ -119,7 +120,7 @@ ObjectStatDimensionTests >> testObjectsAccumulationWhenNoSlicesExist [
slice statistics should receive accumulate: #object
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testObjectsAccumulationWhenSliceAlreadyExistsForIt [

| dimension slice |
Expand All @@ -133,7 +134,7 @@ ObjectStatDimensionTests >> testObjectsAccumulationWhenSliceAlreadyExistsForIt [
slice should receive accumulate: #object
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatDimensionTests >> testPreparingStatistics [

| dimension |
Expand Down
11 changes: 6 additions & 5 deletions ObjectStatistics-Tests/ObjectStatFunctionalMetricTests.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #ObjectStatFunctionalMetricTests,
#superclass : #TestCase,
#category : 'ObjectStatistics-Tests'
#name : 'ObjectStatFunctionalMetricTests',
#superclass : 'TestCase',
#category : 'ObjectStatistics-Tests',
#package : 'ObjectStatistics-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ObjectStatFunctionalMetricTests >> testCreationFromBlock [

| metric block |
Expand All @@ -16,7 +17,7 @@ ObjectStatFunctionalMetricTests >> testCreationFromBlock [
metric functionBlock should be: block
]

{ #category : #tests }
{ #category : 'tests' }
ObjectStatFunctionalMetricTests >> testMeasureObjects [

| object metric actual |
Expand Down
Loading
Loading