Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Moose storages #701

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/Moose-Core-Tests/MooseAbstractGroupTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,6 @@ MooseAbstractGroupTest >> testAllWithType [
self assertEmpty: (group allWithType: Object)
]

{ #category : #tests }
MooseAbstractGroupTest >> testAllWithTypeAtRuntime [
group addAll: {FamixTest3Class new . FamixTest3Method new}.
group entityStorage forRuntime.
self assert: (group allWithType: FamixTest3Class) size equals: 1.
self assert: (group allWithType: FamixTest3Method) size equals: 1.
self assertEmpty: (group allWithType: FamixTest3Invocation)
]

{ #category : #tests }
MooseAbstractGroupTest >> testAllWithTypeAtSetup [
group addAll: {FamixTest3Class new . FamixTest3Method new}.
group entityStorage forSetup.
self assert: (group allWithType: FamixTest3Class) size equals: 1.
self assert: (group allWithType: FamixTest3Method) size equals: 1.
self assertEmpty: (group allWithType: FamixTest3Invocation)
]

{ #category : #tests }
MooseAbstractGroupTest >> testAllWithTypeThenAllWithSubTypesOf [
group addAll: {FamixTest3Class new . FamixTest3Type new}.
Expand Down
5 changes: 0 additions & 5 deletions src/Moose-Core-Tests/MooseGroupTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ MooseGroupTest >> testAsMooseGroupWithClasses [
self assert: group anyOne equals: Object
]

{ #category : #tests }
MooseGroupTest >> testDefaultStorage [
self assert: (group entityStorage isKindOf: MooseGroupRuntimeStorage)
]

{ #category : #tests }
MooseGroupTest >> testDefaultStorageIterator [
self assert: group entityStorage iterator class equals: IteratorWithCollectionAPI
Expand Down
2 changes: 1 addition & 1 deletion src/Moose-Core/MooseAbstractGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ MooseAbstractGroup >> initialize [
MooseAbstractGroup >> initializeWithAll: aCollection [

self initialize.
storage := MooseGroupRuntimeStorage new: aCollection size.
storage := MooseGroupStorage new: aCollection size.
self addAll: aCollection
]

Expand Down
167 changes: 0 additions & 167 deletions src/Moose-Core/MooseGroupRuntimeStorage.class.st

This file was deleted.

117 changes: 0 additions & 117 deletions src/Moose-Core/MooseGroupSetupStorage.class.st

This file was deleted.

Loading
Loading