Pharo test defects

Package: Pharo-Enhancements (seandenigris/Pharo-Enhancements, row 149)

State
Fixed (package repair)
Defect in
see the record
Tests
0
Fix
seandenigris-pharo-enhancements.patch
Upstream repository
seandenigris/Pharo-Enhancements

The record is the text of the repair. The Results table is the last run of the row.

Record

Test

Load the package into a Pharo 14 image (build 791) with the load expression of the test run, file in the fixes file of the row if there is one, and run the test classes of the package.

"row 149"
Metacello new baseline: 'PharoEnhancements'; repository: 'github://seandenigris/Pharo-Enhancements:master/src'; onConflict: [:e | e useIncoming]; load: #('default').

Results

Last result of the package run (stock Cog and iospharo on the same image).

RowLabelLoadStock Cogiospharo VM
149seandenigris-pharo-enhancementsoktests=4 P=4 F=0 E=0 S=0 T=0 X=0tests=4 P=4 F=0 E=0 S=0 T=0 X=0

Fix

Patch of the package source: seandenigris-pharo-enhancements.patch (download)
diff --git a/src/BaselineOfPharoEnhancements/BaselineOfPharoEnhancements.class.st b/src/BaselineOfPharoEnhancements/BaselineOfPharoEnhancements.class.st
index 346bf79..c71402f 100644
--- a/src/BaselineOfPharoEnhancements/BaselineOfPharoEnhancements.class.st
+++ b/src/BaselineOfPharoEnhancements/BaselineOfPharoEnhancements.class.st
@@ -39,6 +39,6 @@ BaselineOfPharoEnhancements >> customProjectAttributes [
 { #category : #testing }
 BaselineOfPharoEnhancements >> isGTImage [
 	
-	^ RPackageOrganizer default packageNames anySatisfy: [ :pn | pn beginsWith: 'Lepiter-' ].
+	^ PackageOrganizer default packageNames anySatisfy: [ :pn | pn beginsWith: 'Lepiter-' ].
 	"Implementation note: used to check for GToolkit prefix, but P7 has a GToolkit-Examples package. Lepiter, OTOH, could only be loaded in a GT image"
 ]
diff --git a/src/PharoEnhancements/TraitBuilderEnhancer.extension.st b/src/PharoEnhancements/TraitBuilderEnhancer.extension.st
deleted file mode 100644
index eb30e39..0000000
--- a/src/PharoEnhancements/TraitBuilderEnhancer.extension.st
+++ /dev/null
@@ -1,23 +0,0 @@
-Extension { #name : 'TraitBuilderEnhancer' }
-
-{ #category : '*PharoEnhancements' }
-TraitBuilderEnhancer >> allSlotsForBuilder: aBuilder [
-
- 	| resultingSlots |
-
- 	resultingSlots := self
- 		eliminateDuplicates: aBuilder layoutDefinition slots , aBuilder traitComposition asTraitComposition slotsCopy
- 		withSuperclassSlots: (aBuilder superclass ifNil: [#()] ifNotNil:[ :x | x allSlots]).
-
- 	^ resultingSlots
-]
-
-{ #category : '*PharoEnhancements' }
-TraitBuilderEnhancer >> configureClass: newClass superclass: superclass withLayoutType: layoutType slots: slots [
-	| resultingSlots |
-	self validateTraitComposition: self traitComposition ofClass: builder oldClass.
-
-	resultingSlots := self allSlotsForBuilder: builder.
-
-	newClass superclass: superclass withLayoutType: layoutType slots: resultingSlots
-]

State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.