Manuscript (Case [Issue]20929) Crosscutting and Misc - Remove unnecessary "self debug:#testSelector" comment from test methods - PASS 1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]20929) Crosscutting and Misc - Remove unnecessary "self debug:#testSelector" comment from test methods - PASS 1

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Crosscutting and Misc: 1. Pharo Image  •  You are subscribed to this case
Using the script

```Smalltalk
|part replacement|
Transcript clear.
TestCase allSubclassesDo: [:each |
each methodsDo: [:m |

part := '"self debug: #', m selector asString, '"'.
((m sourceCode includesSubstring: part) and: [ m methodClass includesLocalSelector: m selector ])
ifTrue: [
replacement := (m sourceCode copyReplaceAll: part with: '').
Transcript show: m printString; cr.
m methodClass compile: replacement.
]
]
].
```
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Torsten Bergmann Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker