FAMIXBehaviouralEntity>>computeNumberOfLinesOfCode

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FAMIXBehaviouralEntity>>computeNumberOfLinesOfCode

Stephan Eggermont-3
Shouldn't

FAMIXBehaviouralEntity>>computeNumberOfLinesOfCode
     self hasSourceAnchor
         ifTrue: [ ^ self sourceAnchor lineCount ].

     ^ (self sourceText lineCount = '')
             ifTrue: [ self notExistentMetricValue ]
             ifFalse: [ self sourceText lineCount ]

be

computeNumberOfLinesOfCode
     self hasSourceAnchor
         ifTrue: [ ^ self sourceAnchor lineCount ].
     ^ (self sourceText = '')
             ifTrue: [ self notExistentMetricValue ]
             ifFalse: [ self sourceText lineCount ]
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: FAMIXBehaviouralEntity>>computeNumberOfLinesOfCode

Tudor Girba-2
Yes, it should. Could you also write a small test for this?

Cheers,
Doru


On Wed, Aug 26, 2015 at 11:29 PM, stephan <[hidden email]> wrote:
Shouldn't

FAMIXBehaviouralEntity>>computeNumberOfLinesOfCode
    self hasSourceAnchor
        ifTrue: [ ^ self sourceAnchor lineCount ].

    ^ (self sourceText lineCount = '')
            ifTrue: [ self notExistentMetricValue ]
            ifFalse: [ self sourceText lineCount ]

be

computeNumberOfLinesOfCode
    self hasSourceAnchor
        ifTrue: [ ^ self sourceAnchor lineCount ].
    ^ (self sourceText = '')
            ifTrue: [ self notExistentMetricValue ]
            ifFalse: [ self sourceText lineCount ]
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev