Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Durieux Pol committed Jan 26, 2024
1 parent 00242f6 commit 872345c
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@ Class {
{ #category : 'tests' }
MTNonMutatedMethodsAnalysisTest >> testNonMutatedMethods [

| testClasses nonMutatedMethods results |
testClasses := 'MuTalk-Utilities-Tests' asPackage definedClasses
select: #isTestCase.
nonMutatedMethods := testClasses
inject: Set new
into: [ :set :testClass |
set addAll: testClass methods.
set ].
| results |
results := (MTNonMutatedMethodsAnalysis forClasses: {
MTAuxiliarClassForMatrix.
MTAuxiliarClassForMatrixTest })
findMethodsWithoutMutation asSet.

results := (MTNonMutatedMethodsAnalysis forPackages:
{ 'MuTalk-Utilities-Tests' }) findMethodsWithoutMutation
asSet.

self assert: nonMutatedMethods equals: results
self
assert: results
equals: MTAuxiliarClassForMatrixTest methods asSet
]

0 comments on commit 872345c

Please sign in to comment.