@@ -14,7 +14,6 @@ stdout=$2
14
14
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
15
15
grep " CC 0 " " ${temp} /stdout"
16
16
} > " ${stdout} " 2>&1
17
-
18
17
echo " 👍🏻 Correctly calculated cyclomatic complexity for empty class"
19
18
20
19
{
@@ -32,7 +31,6 @@ echo "👍🏻 Correctly calculated cyclomatic complexity for empty class"
32
31
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
33
32
grep " CC 2 " " ${temp} /stdout"
34
33
} > " ${stdout} " 2>&1
35
-
36
34
echo " 👍🏻 Correctly calculated cyclomatic complexity for single method class"
37
35
38
36
{
@@ -48,7 +46,6 @@ echo "👍🏻 Correctly calculated cyclomatic complexity for single method clas
48
46
grep " Usage: python cyclomatic_complexity.py <path to the .java file> <output file with metrics>" " ${temp} /message"
49
47
fi
50
48
} > " ${stdout} " 2>&1
51
-
52
49
echo " 👍🏻 Usage works correctly"
53
50
54
51
{
@@ -58,7 +55,6 @@ echo "👍🏻 Usage works correctly"
58
55
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
59
56
grep " CC 2 " " ${temp} /stdout"
60
57
} > " ${stdout} " 2>&1
61
-
62
58
echo " 👍🏻 IfStatement works correctly"
63
59
64
60
{
@@ -68,7 +64,6 @@ echo "👍🏻 IfStatement works correctly"
68
64
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
69
65
grep " CC 2 " " ${temp} /stdout"
70
66
} > " ${stdout} " 2>&1
71
-
72
67
echo " 👍🏻 ForStatement works correctly"
73
68
74
69
{
@@ -78,7 +73,6 @@ echo "👍🏻 ForStatement works correctly"
78
73
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
79
74
grep " CC 2 " " ${temp} /stdout"
80
75
} > " ${stdout} " 2>&1
81
-
82
76
echo " 👍🏻 WhileStatement works correctly"
83
77
84
78
{
@@ -88,7 +82,6 @@ echo "👍🏻 WhileStatement works correctly"
88
82
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
89
83
grep " CC 2 " " ${temp} /stdout"
90
84
} > " ${stdout} " 2>&1
91
-
92
85
echo " 👍🏻 DoWhileStatement works correctly"
93
86
94
87
{
@@ -98,7 +91,6 @@ echo "👍🏻 DoWhileStatement works correctly"
98
91
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
99
92
grep " CC 3 " " ${temp} /stdout"
100
93
} > " ${stdout} " 2>&1
101
-
102
94
echo " 👍🏻 BinaryOperation works correctly"
103
95
104
96
{
@@ -108,7 +100,6 @@ echo "👍🏻 BinaryOperation works correctly"
108
100
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
109
101
grep " CC 2 " " ${temp} /stdout"
110
102
} > " ${stdout} " 2>&1
111
-
112
103
echo " 👍🏻 TernaryExpression works correctly"
113
104
114
105
{
@@ -118,5 +109,4 @@ echo "👍🏻 TernaryExpression works correctly"
118
109
" ${LOCAL} /metrics/cyclomatic_complexity.py" " ${java} " " ${temp} /stdout"
119
110
grep " CC 1 " " ${temp} /stdout"
120
111
} > " ${stdout} " 2>&1
121
-
122
112
echo " 👍🏻 MethodDeclaration works correctly"
0 commit comments