The Trunk: Tests-ul.434.mcz

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

The Trunk: Tests-ul.434.mcz

commits-2
Levente Uzonyi uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ul.434.mcz

==================== Summary ====================

Name: Tests-ul.434
Author: ul
Time: 27 May 2020, 3:33:20.792457 am
UUID: 9d3d7a92-4f24-4d36-89ef-f928de795b1f
Ancestors: Tests-nice.433

- speed up DecompilerTests >> #classNames by only computing #category once per class

=============== Diff against Tests-nice.433 ===============

Item was changed:
  ----- Method: DecompilerTests>>classNames (in category 'utilities') -----
  classNames
  "A list of the classes in most of the base packages; excluding EToys arbitrarily for now"
+
+ | prefixes |
+ prefixes := self basePackagePrefixes.
  ^Smalltalk globals allClassesAndTraits
  select:
  [:classOrTrait|
+ classOrTrait category
+ ifNil: [false]
+ ifNotNil:
+ [:category|
+ prefixes anySatisfy: [:packageRoot| category beginsWith: packageRoot]]]
- self basePackagePrefixes anySatisfy:
- [:packageRoot|
- classOrTrait category ifNil: [false] ifNotNil: [:cat| cat beginsWith: packageRoot]]]
  thenCollect:
  [:classOrTrait| classOrTrait name]!