Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Durieux Pol committed Jan 31, 2024
1 parent 595c8d0 commit 3c301c5
Show file tree
Hide file tree
Showing 42 changed files with 2 additions and 212 deletions.
6 changes: 0 additions & 6 deletions src/MuTalk-Tests/MTEmptyMethodOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ MTEmptyMethodOperatorTest >> operator [
^ MTEmptyMethodOperator new
]

{ #category : 'accessing' }
MTEmptyMethodOperatorTest >> operatorDescription [

^ self operator description
]

{ #category : 'tests' }
MTEmptyMethodOperatorTest >> testApplyMutantToMethod [

Expand Down
6 changes: 0 additions & 6 deletions src/MuTalk-Tests/MTLiteralBooleanNegateOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,3 @@ MTLiteralBooleanNegateOperatorTest >> operator [

^ MTLiteralBooleanNegateOperator new
]

{ #category : 'accessing' }
MTLiteralBooleanNegateOperatorTest >> operatorDescription [

^ self operator description
]
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ MTLiteralIntegersIncreaseOperatorTest >> operator [

^ MTLiteralIntegersIncreaseOperator new
]

{ #category : 'accessing' }
MTLiteralIntegersIncreaseOperatorTest >> operatorDescription [

^ 'Increase a literal integer'
]
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,3 @@ MTMessageSendArguments1stNullifierOperatorTest >> operator [

^ MTMessageSendArguments1stNullifierOperator new
]

{ #category : 'accessing' }
MTMessageSendArguments1stNullifierOperatorTest >> operatorDescription [

^ self operator description
]
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,3 @@ MTMessageSendArguments3rdNullifierOperatorTest >> operator [

^ MTMessageSendArguments3rdNullifierOperator new
]

{ #category : 'accessing' }
MTMessageSendArguments3rdNullifierOperatorTest >> operatorDescription [

^ self operator description
]
6 changes: 0 additions & 6 deletions src/MuTalk-Tests/MTMessageSendToYourselfOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,3 @@ MTMessageSendToYourselfOperatorTest >> operator [

^ MTMessageSendToYourselfOperator new
]

{ #category : 'accessing' }
MTMessageSendToYourselfOperatorTest >> operatorDescription [

^ self operator description
]
3 changes: 2 additions & 1 deletion src/MuTalk-Tests/MTMutantOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ MTMutantOperatorTest >> operator [

{ #category : 'accessing' }
MTMutantOperatorTest >> operatorDescription [
self subclassResponsibility

^ self operator description
]

{ #category : 'tests' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,3 @@ MTRemoveAtIfAbsentMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTRemoveAtIfAbsentMutantOperatorTest >> operator [
^ MTRemoveAtIfAbsentOperator new
]

{ #category : 'accessing' }
MTRemoveAtIfAbsentMutantOperatorTest >> operatorDescription [
^ 'Remove at:ifAbsent:'
]
5 changes: 0 additions & 5 deletions src/MuTalk-Tests/MTRemoveCaretMutantOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,3 @@ MTRemoveCaretMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTRemoveCaretMutantOperatorTest >> operator [
^ MTRemoveCaretOperator new
]

{ #category : 'accessing' }
MTRemoveCaretMutantOperatorTest >> operatorDescription [
^ 'Remove ^'
]
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,3 @@ MTRemoveExceptionHandlerOperatorTest >> methodWithTwoSendersModifiedSecond [
MTRemoveExceptionHandlerOperatorTest >> operator [
^ MTRemoveExceptionHandlerOperator new
]

{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> operatorDescription [
^ 'Remove Exception Handler Operator'
]
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,3 @@ MTReplaceAndArgumentWithTrueOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndArgumentWithTrueOperatorTest >> operator [
^ MTReplaceAndArgumentWithTrueOperator new.
]

{ #category : 'accessing' }
MTReplaceAndArgumentWithTrueOperatorTest >> operatorDescription [
^'Replace #and: argument with [true]'
]
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,3 @@ MTReplaceAndReceiverWithTrueOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndReceiverWithTrueOperatorTest >> operator [
^ MTReplaceAndReceiverWithTrueOperator new
]

{ #category : 'accessing' }
MTReplaceAndReceiverWithTrueOperatorTest >> operatorDescription [
^'Replace #and: receiver with true'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceAndWithEqvMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndWithEqvMutantOperatorTest >> operator [
^ MTReplaceAndWithEqvMutantOperator new
]

{ #category : 'accessing' }
MTReplaceAndWithEqvMutantOperatorTest >> operatorDescription [
^'Replace #and: with #bEqv:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceAndWithFalseMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndWithFalseMutantOperatorTest >> operator [
^ MTReplaceAndWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceAndWithFalseMutantOperatorTest >> operatorDescription [
^'Replace #and: with false'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceAndWithNandMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndWithNandMutantOperatorTest >> operator [
^ MTReplaceAndWithNandMutantOperator new
]

{ #category : 'accessing' }
MTReplaceAndWithNandMutantOperatorTest >> operatorDescription [
^'Replace #and: with #nand:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceAndWithOrMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceAndWithOrMutantOperatorTest >> operator [
^ MTReplaceAndWithOrMutantOperator new
]

{ #category : 'accessing' }
MTReplaceAndWithOrMutantOperatorTest >> operatorDescription [
^'Replace #and: with #or:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,3 @@ MTReplaceDetectIfNoneFirstBlockWithAlwaysFalseBlockOperatorTest >> methodWithTwo
MTReplaceDetectIfNoneFirstBlockWithAlwaysFalseBlockOperatorTest >> operator [
^ MTReplaceDetectIfNoneFirstBlockWithAlwaysFalseBlockOperator new
]

{ #category : 'accessing' }
MTReplaceDetectIfNoneFirstBlockWithAlwaysFalseBlockOperatorTest >> operatorDescription [
^'Replace detect: block with [:each | false] when #detect:ifNone: '
]
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,3 @@ MTReplaceDetectIfNoneFirstBlockWithAlwaysTrueBlockOperatorTest >> methodWithTwoS
MTReplaceDetectIfNoneFirstBlockWithAlwaysTrueBlockOperatorTest >> operator [
^ MTReplaceDetectIfNoneFirstBlockWithAlwaysTrueBlockOperator new
]

{ #category : 'accessing' }
MTReplaceDetectIfNoneFirstBlockWithAlwaysTrueBlockOperatorTest >> operatorDescription [
^'Replace detect: block with [:each | true] when #detect:ifNone: '
]
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,3 @@ MTReplaceDetectIfNoneSecondBlockWithEmptyBlockOperatorTest >> methodWithTwoSende
MTReplaceDetectIfNoneSecondBlockWithEmptyBlockOperatorTest >> operator [
^ MTReplaceDetectIfNoneSecondBlockWithEmptyBlockOperator new
]

{ #category : 'accessing' }
MTReplaceDetectIfNoneSecondBlockWithEmptyBlockOperatorTest >> operatorDescription [
^'Replace ifNone: block with [] when #detect:ifNone:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ MTReplaceDoBlockWithEmptyBlockOperatorTest >> methodWithTwoSendersModifiedSecond
MTReplaceDoBlockWithEmptyBlockOperatorTest >> operator [
^ MTReplaceDoBlockWithEmptyBlockOperator new
]

{ #category : 'accessing' }
MTReplaceDoBlockWithEmptyBlockOperatorTest >> operatorDescription [
^'Replace do block with [:each |]'.
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceGreaterOrEqualWithEqualMutantOperatorTest >> methodWithTwoSendersModifi
MTReplaceGreaterOrEqualWithEqualMutantOperatorTest >> operator [
^ MTReplaceGreaterOrEqualWithEqualMutantOperator new
]

{ #category : 'accessing' }
MTReplaceGreaterOrEqualWithEqualMutantOperatorTest >> operatorDescription [
^'Replace #''>='' with #='
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceGreaterOrEqualWithGreaterMutantOperatorTest >> methodWithTwoSendersModi
MTReplaceGreaterOrEqualWithGreaterMutantOperatorTest >> operator [
^ MTReplaceGreaterOrEqualWithGreaterMutantOperator new
]

{ #category : 'accessing' }
MTReplaceGreaterOrEqualWithGreaterMutantOperatorTest >> operatorDescription [
^'Replace #''>='' with #>'
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ MTReplaceIfFalseReceiverWithFalseOperatorTest >> methodWithTwoSendersModifiedSec
MTReplaceIfFalseReceiverWithFalseOperatorTest >> operator [
^ MTReplaceIfFalseReceiverWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceIfFalseReceiverWithFalseOperatorTest >> operatorDescription [
^'Replace #ifFalse: receiver with false'
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ MTReplaceIfFalseReceiverWithTrueOperatorTest >> methodWithTwoSendersModifiedSeco
MTReplaceIfFalseReceiverWithTrueOperatorTest >> operator [
^ MTReplaceIfFalseReceiverWithTrueOperator new
]

{ #category : 'accessing' }
MTReplaceIfFalseReceiverWithTrueOperatorTest >> operatorDescription [
^'Replace #ifFalse: receiver with true'
]
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,3 @@ MTReplaceIfFalseWithIfTrueMutantOperatorTest >> methodWithTwoSendersModifiedSeco
MTReplaceIfFalseWithIfTrueMutantOperatorTest >> operator [
^ MTReplaceIfFalseWithIfTrueMutantOperator new
]

{ #category : 'accessing' }
MTReplaceIfFalseWithIfTrueMutantOperatorTest >> operatorDescription [
^'Replace #ifFalse: with #ifTrue:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,3 @@ MTReplaceIfTrueIfFalseReceiverWithFalseOperatorTest >> methodWithTwoSendersModif
MTReplaceIfTrueIfFalseReceiverWithFalseOperatorTest >> operator [
^ MTReplaceIfTrueIfFalseReceiverWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceIfTrueIfFalseReceiverWithFalseOperatorTest >> operatorDescription [
^'Replace #ifTrue:ifFalse: receiver with false'
]
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,3 @@ MTReplaceIfTrueIfFalseReceiverWithTrueOperatorTest >> methodWithTwoSendersModifi
MTReplaceIfTrueIfFalseReceiverWithTrueOperatorTest >> operator [
^ MTReplaceIfTrueIfFalseReceiverWithTrueOperator new
]

{ #category : 'accessing' }
MTReplaceIfTrueIfFalseReceiverWithTrueOperatorTest >> operatorDescription [
^'Replace #ifTrue:ifFalse: receiver with true'
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ MTReplaceIfTrueReceiverWithFalseOperatorTest >> methodWithTwoSendersModifiedSeco
MTReplaceIfTrueReceiverWithFalseOperatorTest >> operator [
^ MTReplaceIfTrueReceiverWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceIfTrueReceiverWithFalseOperatorTest >> operatorDescription [
^'Replace #ifTrue: receiver with false'
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ MTReplaceIfTrueReceiverWithTrueOperatorTest >> methodWithTwoSendersModifiedSecon
MTReplaceIfTrueReceiverWithTrueOperatorTest >> operator [
^ MTReplaceIfTrueReceiverWithTrueOperator new
]

{ #category : 'accessing' }
MTReplaceIfTrueReceiverWithTrueOperatorTest >> operatorDescription [
^'Replace #ifTrue: receiver with true'
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ MTReplaceIfTrueWithIfFalseMutantOperatorTest >> methodWithTwoSendersModifiedSeco
MTReplaceIfTrueWithIfFalseMutantOperatorTest >> operator [
^ MTReplaceIfTrueWithIfFalseMutantOperator new
]

{ #category : 'accessing' }
MTReplaceIfTrueWithIfFalseMutantOperatorTest >> operatorDescription [
^'Replace #ifTrue: with #ifFalse:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,3 @@ MTReplaceIsEmptyWithNotEmptyMutantOperatorTest >> methodWithTwoSendersModifiedSe
MTReplaceIsEmptyWithNotEmptyMutantOperatorTest >> operator [
^MTReplaceIsEmptyWithNotEmptyMutantOperator new
]

{ #category : 'accessing' }
MTReplaceIsEmptyWithNotEmptyMutantOperatorTest >> operatorDescription [
^'Replace #isEmpty with #notEmpty'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceLessOrEqualWithEqualMutantOperatorTest >> methodWithTwoSendersModifiedS
MTReplaceLessOrEqualWithEqualMutantOperatorTest >> operator [
^ MTReplaceLessOrEqualWithEqualMutantOperator new
]

{ #category : 'accessing' }
MTReplaceLessOrEqualWithEqualMutantOperatorTest >> operatorDescription [
^'Replace #''<='' with #='
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceLessOrEqualWithLessMutantOperatorTest >> methodWithTwoSendersModifiedSe
MTReplaceLessOrEqualWithLessMutantOperatorTest >> operator [
^ MTReplaceLessOrEqualWithLessMutantOperator new
]

{ #category : 'accessing' }
MTReplaceLessOrEqualWithLessMutantOperatorTest >> operatorDescription [
^'Replace #''<='' with #<'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceMinusWithPlusMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceMinusWithPlusMutantOperatorTest >> operator [
^ MTReplaceMinusWithPlusMutantOperator new
]

{ #category : 'accessing' }
MTReplaceMinusWithPlusMutantOperatorTest >> operatorDescription [
^'Replace #- with #+'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceOrArgumentWithFalseOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceOrArgumentWithFalseOperatorTest >> operator [
^ MTReplaceOrArgumentWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceOrArgumentWithFalseOperatorTest >> operatorDescription [
^'Replace #or: argument with [false]'
]
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,3 @@ MTReplaceOrReceiverWithFalseOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceOrReceiverWithFalseOperatorTest >> operator [
^ MTReplaceOrReceiverWithFalseOperator new
]

{ #category : 'accessing' }
MTReplaceOrReceiverWithFalseOperatorTest >> operatorDescription [
^'Replace #or: receiver with false'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceOrWithAndMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceOrWithAndMutantOperatorTest >> operator [
^ MTReplaceOrWithAndMutantOperator new
]

{ #category : 'accessing' }
MTReplaceOrWithAndMutantOperatorTest >> operatorDescription [
^'Replace #or: with #and:'
]
5 changes: 0 additions & 5 deletions src/MuTalk-Tests/MTReplaceOrWithTrueOperatorTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceOrWithTrueOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceOrWithTrueOperatorTest >> operator [
^ MTReplaceOrWithTrueOperator new
]

{ #category : 'accessing' }
MTReplaceOrWithTrueOperatorTest >> operatorDescription [
^'Replace #or: with true'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplaceOrWithXorMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplaceOrWithXorMutantOperatorTest >> operator [
^ MTReplaceOrWithXorMutantOperator new
]

{ #category : 'accessing' }
MTReplaceOrWithXorMutantOperatorTest >> operatorDescription [
^'Replace #or: with #bXor:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ MTReplacePlusWithMinusMutantOperatorTest >> methodWithTwoSendersModifiedSecond [
MTReplacePlusWithMinusMutantOperatorTest >> operator [
^ MTReplacePlusWithMinusMutantOperator new
]

{ #category : 'accessing' }
MTReplacePlusWithMinusMutantOperatorTest >> operatorDescription [
^'Replace #+ with #-'
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ MTReplaceRejectWithSelectMutantOperatorTest >> methodWithTwoSendersModifiedSecon
MTReplaceRejectWithSelectMutantOperatorTest >> operator [
^ MTReplaceRejectWithSelectMutantOperator new
]

{ #category : 'accessing' }
MTReplaceRejectWithSelectMutantOperatorTest >> operatorDescription [
^'Replace #reject: with #select:'
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ MTReplaceSelectWithRejectMutantOperatorTest >> methodWithTwoSendersModifiedSecon
MTReplaceSelectWithRejectMutantOperatorTest >> operator [
^ MTReplaceSelectWithRejectMutantOperator new
]

{ #category : 'accessing' }
MTReplaceSelectWithRejectMutantOperatorTest >> operatorDescription [
^'Replace #select: with #reject:'
]

0 comments on commit 3c301c5

Please sign in to comment.