Skip to content

Commit

Permalink
Merge pull request #84 from hpi-swa-teaching/change-of-literals-method
Browse files Browse the repository at this point in the history
This changes the usage of allLiterals to literals
  • Loading branch information
codeZeilen authored May 5, 2021
2 parents 1d35552 + 0b56c77 commit ab72dd7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ allMethodsUsedIn: aSLClassTestObject
^ aSLClassTestObject methods
inject: Set new
into: [ :set :method |
set addAll: method testObject allLiterals;
set addAll: method testObject literals;
yourself]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ baseClassUsageRatio: aSLClassTestObject
description: 'Answer the number of instance-specific members used by the measured class, divided by the instance-specific members from the base class.' >

| numberOfBaseElements |

numberOfBaseElements := self countBaseElementsOf: aSLClassTestObject.

^ self percentageResult: ((numberOfBaseElements > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"instance" : {
"accessToForeignData:" : "JTM 5/27/2015 11:41",
"allForeignMethodsUsedIn:" : "AT 5/7/2008 21:33",
"allMethodsUsedIn:" : "AT 5/7/2008 21:33",
"allMethodsUsedIn:" : "smalltalkCI 5/5/2021 10:52",
"avgLOCperMethod:" : "NA 7/25/2015 20:54",
"baseClassOverridingRatio:" : "NA 7/25/2015 20:54",
"baseClassUsageRatio:" : "NA 7/29/2015 11:21",
"baseClassUsageRatio:" : "smalltalkCI 5/5/2021 10:52",
"classAMW:" : "NA 7/25/2015 21:09",
"classLOC:" : "NA 7/25/2015 20:58",
"classNAS:" : "NA 7/25/2015 21:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ indirectlyAccessedVars: aSLMethodTestObject in: aSLClassTestObject
accessorsOfClass := aSLClassTestObject resultOf: #allAccessors:.
usedVars := Set new.
instVars := aSLClassTestObject testObject allInstVarNames.
literals := aSLMethodTestObject testObject allLiterals.
literals := aSLMethodTestObject testObject literals.

usedVars addAll: (accessorsOfClass
select: [ :a |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directlyAccessedVars:" : "NA 7/26/2015 19:07",
"firstAccessed:by:" : "AT 2/2/2008 14:38",
"firstAccessedBy:" : "AT 5/8/2008 09:37",
"indirectlyAccessedVars:in:" : "NA 7/27/2015 00:15",
"indirectlyAccessedVars:in:" : "smalltalkCI 5/5/2021 10:50",
"isAccessor:" : "JTM 5/27/2015 11:13",
"isGetter:" : "JTM 5/27/2015 11:13",
"isPrivate:" : "NA 7/25/2015 20:24",
Expand Down

0 comments on commit ab72dd7

Please sign in to comment.