Skip to content

Commit

Permalink
fix: replace deprecations in Pharo 12
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion authored and fniephaus committed Oct 11, 2023
1 parent 88cdea7 commit fe12829
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ classesToTest
SmalltalkCI explicitTestKeys
do: [ :key |
(self testing includesKey: key)
ifTrue: [ ^ SmalltalkCI classesFrom: self testing ] ].
ifTrue: [ ^ SmalltalkCI platformClass classesFrom: self testing ] ].
classes := OrderedCollection new.
(self testing at: #'allTestCases' ifAbsent: [ false ]) = true
ifTrue: [ classes addAll: TestCase allSubclasses ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
helpers
classesToCoverForCategories
^ self coverageAt: #categories
do: [ :categoryNames | SmalltalkCI classesForCategories: categoryNames ]
do: [ :categoryNames | SmalltalkCI platformClass classesForCategories: categoryNames ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class organization
allCategoryNames
| packages |
packages := Smalltalk organization packages.
^ (OrderedCollection
new: packages size
streamContents: [ :stream |
packages do: [ :package |
stream nextPut: package name asString.
package classTags do: [ :tag |
stream nextPut: tag categoryName asString ] ] ]) asSet asArray
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
compatibility
codeCoverageClass

^ Smalltalk at: #SCIPharo12CodeCoverage
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
compatibility
packageNameForClass: aClass
^ ((Smalltalk at: #RPackageOrganizer) default packageOf: aClass) name
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
compatibility
packageNameForMethod: aMethodReference
| aClass |
aClass := aMethodReference compiledMethod methodClass.
^ (aClass packages detect: [:each | each includesSelector: aMethodReference compiledMethod selector ofClass: aClass ]) name
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commentStamp" : "",
"super" : "SCIPharoCodeCoverage",
"category" : "SmalltalkCI-Pharo-Coverage-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SCIPharo12CodeCoverage",
"type" : "normal"
}

0 comments on commit fe12829

Please sign in to comment.