Skip to content

Commit

Permalink
Correct wrongly migrated methods in ClassDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Nov 21, 2024
1 parent 05118c8 commit 6d5ee0e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/NewTools-Finder/ClassDescription.extension.st
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
Extension { #name : 'ClassDescription' }

{ #category : '*NewTools-Finder' }
ClassDescription class >> allSelectorsToTestInMethodFinder [
ClassDescription >> allSelectorsToTestInMethodFinder [
"Returns all the selectors that the class approved, so which can be tested by the MethodFinder without problem. This set is the set of selectors that the class approved plus all the selectors approved by its superclass unless if they are forbidden by the class."

^ (self approvedSelectorsForMethodFinder union: self superclass allSelectorsToTestInMethodFinder)
difference: self forbiddenSelectorsForMethodFinder asSet
]

{ #category : '*NewTools-Finder' }
ClassDescription class >> allSelectorsToTestInMethodFinderWithArity: anInteger [
"Returns all the selectors with a certain arity which are approved by the class so which can be tested in the Method Finder."

^ self allSelectorsToTestInMethodFinder select: [ :selector | selector numArgs = anInteger ]
]

{ #category : '*NewTools-Finder' }
ClassDescription >> allSelectorsToTestInMethodFinderWithArity: anInteger [
"Returns all the selectors with a certain arity which are approved by the class so which can be tested in the Method Finder."
Expand All @@ -23,7 +16,7 @@ ClassDescription >> allSelectorsToTestInMethodFinderWithArity: anInteger [
]

{ #category : '*NewTools-Finder' }
ClassDescription class >> approvedSelectorsForMethodFinder [
ClassDescription >> approvedSelectorsForMethodFinder [
"The list of the selectors that the class approved. It's empty by default.
An approved selector is a selector where the message send to the class could be
tested by the Method Finder without problem. For instance, it does not modify
Expand Down

0 comments on commit 6d5ee0e

Please sign in to comment.