Skip to content

Commit

Permalink
Add speed up back now that tests are better
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jun 14, 2024
1 parent 5e6f90c commit b7aa438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ AbstractFamixDiffWithModelTest >> baseEntityNamed: aString [
{ #category : #running }
AbstractFamixDiffWithModelTest >> createChange: changeClass with: entity [

self resolver changesDico at: entity put: (changeClass entity: entity)
| change |
change := changeClass entity: entity.
self resolver changesDico at: entity put: change.
diff result add: change
]

{ #category : #running }
Expand All @@ -26,7 +29,8 @@ AbstractFamixDiffWithModelTest >> createChange: changeClass with: baseEntity and
change := changeClass base: baseEntity target: targetEntity.
self resolver changesDico
at: baseEntity put: change;
at: targetEntity put: change
at: targetEntity put: change.
diff result add: change
]

{ #category : #accessing }
Expand Down
4 changes: 2 additions & 2 deletions src/Famix-Diff-Core/FamixDiffResolver.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ FamixDiffResolver >> diff [

[
self diffEntities.
self diffAssociations.
self result addAll: self changesDico values asSet.
self diffAssociations.
self result addAll: self associationChanges asSet ] ensure: [ self removeFamixDiffCaches ]
]

{ #category : #'run-associations' }
FamixDiffResolver >> diffAssociations [

self changesDico values asSet do: [ :chg | chg updateDiffForAssociations: self ] displayingProgress: 'Comparing entity associations'
self result do: [ :chg | chg updateDiffForAssociations: self ] displayingProgress: 'Comparing entity associations'
]

{ #category : #'run-entities' }
Expand Down

0 comments on commit b7aa438

Please sign in to comment.