Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Example of Method with Cyclomatic Complexity 17

Example of Method with Cyclomatic Complexity 17

Ratings: (0)|Views: 147 |Likes:
Published by Zarko Acimovic

The method 'getDirection' has a Cyclomatic Complexity of 17. The complexity is measured by the number of if, while, do, for, ?:, catch, switch, case statements, and operators && and || (plus one) in the body of a constructor, method, static initializer, or instance initializer. It is a measure of the minimum number of possible paths through the source and therefore the number of required tests. Generally 1-4 is considered good, 5-7 ok, 8-10 consider re-factoring, and 11+ re-factor now!

The method 'getDirection' has a Cyclomatic Complexity of 17. The complexity is measured by the number of if, while, do, for, ?:, catch, switch, case statements, and operators && and || (plus one) in the body of a constructor, method, static initializer, or instance initializer. It is a measure of the minimum number of possible paths through the source and therefore the number of required tests. Generally 1-4 is considered good, 5-7 ok, 8-10 consider re-factoring, and 11+ re-factor now!

More info:

Published by: Zarko Acimovic on Dec 05, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/17/2013

pdf

text

original

 

;*+55,

 '" #-#   '" #-2  "* #*  )$( #*  ,2$ #*   '. $02   '" $0+   '. $#*   '. $#-  
 '"1
$5  ::I:64'H7 $-# %&"$--  )$0 $--  ,(+ $--  =//"#*$--  =78,"+5+# $--   '. $+   '. $*  "(0 )$(0 ,2- (0 
 

;*+55





1F<<

'
(

)
!"


"2!2!


B372BM2=!7
?
2F#
?
F'
?
!F(FA20,)
%
FA22@
%
!.7F

0!7!.-/

7!/

72/

#'()B372$BM2=!7% 

7/72F/7G.6!$% !F/7G.6!$% #2FG$>!>% #!FG$>!>% #/

%
$%##0!/


$%#'&#(#)
&?



$
#

!C.7F$% '
%
/

%
$%'
%
''#
3"
''

$

2F22=$7G.6!$%57C.6!$%%% '(2FHI$7G.6!$%57F"-$%57F"-$%%

 

')!!6$2F% '&'

$

!F22=$7G.6!$%5 7C.6!$%%%'!FHI$7G.6!$%57F"-$%57F"-$%% (!!6$!F% (&((#
3"
('/0,F$7G.6!$%57C.6!$%% ((

$/;:$%88% ()
?
./$
?
%<$%(.HI$7G.6!$%57F"-$%57F"-$%% (!!6$.% (&)))
3"
)#

$/;:$%88% )'FA2/$FA2%<$% )(

$A7$%//

%))/F$7G.6!$%57C.6!$%% ))

$/;:$%88% )
?
./$
?
%<$%.HI$7G.6!$%57F"-$%57F"-$%% !!6$.% &#&'&(!.7F/)&
*&?

8!%

$+


%
C.7F3!$%#

!.7F'&()

%
C.7F$%

C.7F$%

!.7F&

!F$
?
.%


You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->