Skip to content

Commit c7d6d6a

Browse files
committed
fixes
1 parent 2a04aef commit c7d6d6a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/metrics/test-cyclomatic_complexity.sh

-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ stdout=$2
1414
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
1515
grep "CC 0 " "${temp}/stdout"
1616
} > "${stdout}" 2>&1
17-
1817
echo "👍🏻 Correctly calculated cyclomatic complexity for empty class"
1918

2019
{
@@ -32,7 +31,6 @@ echo "👍🏻 Correctly calculated cyclomatic complexity for empty class"
3231
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
3332
grep "CC 2 " "${temp}/stdout"
3433
} > "${stdout}" 2>&1
35-
3634
echo "👍🏻 Correctly calculated cyclomatic complexity for single method class"
3735

3836
{
@@ -48,7 +46,6 @@ echo "👍🏻 Correctly calculated cyclomatic complexity for single method clas
4846
grep "Usage: python cyclomatic_complexity.py <path to the .java file> <output file with metrics>" "${temp}/message"
4947
fi
5048
} > "${stdout}" 2>&1
51-
5249
echo "👍🏻 Usage works correctly"
5350

5451
{
@@ -58,7 +55,6 @@ echo "👍🏻 Usage works correctly"
5855
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
5956
grep "CC 2 " "${temp}/stdout"
6057
} > "${stdout}" 2>&1
61-
6258
echo "👍🏻 IfStatement works correctly"
6359

6460
{
@@ -68,7 +64,6 @@ echo "👍🏻 IfStatement works correctly"
6864
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
6965
grep "CC 2 " "${temp}/stdout"
7066
} > "${stdout}" 2>&1
71-
7267
echo "👍🏻 ForStatement works correctly"
7368

7469
{
@@ -78,7 +73,6 @@ echo "👍🏻 ForStatement works correctly"
7873
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
7974
grep "CC 2 " "${temp}/stdout"
8075
} > "${stdout}" 2>&1
81-
8276
echo "👍🏻 WhileStatement works correctly"
8377

8478
{
@@ -88,7 +82,6 @@ echo "👍🏻 WhileStatement works correctly"
8882
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
8983
grep "CC 2 " "${temp}/stdout"
9084
} > "${stdout}" 2>&1
91-
9285
echo "👍🏻 DoWhileStatement works correctly"
9386

9487
{
@@ -98,7 +91,6 @@ echo "👍🏻 DoWhileStatement works correctly"
9891
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
9992
grep "CC 3 " "${temp}/stdout"
10093
} > "${stdout}" 2>&1
101-
10294
echo "👍🏻 BinaryOperation works correctly"
10395

10496
{
@@ -108,7 +100,6 @@ echo "👍🏻 BinaryOperation works correctly"
108100
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
109101
grep "CC 2 " "${temp}/stdout"
110102
} > "${stdout}" 2>&1
111-
112103
echo "👍🏻 TernaryExpression works correctly"
113104

114105
{
@@ -118,5 +109,4 @@ echo "👍🏻 TernaryExpression works correctly"
118109
"${LOCAL}/metrics/cyclomatic_complexity.py" "${java}" "${temp}/stdout"
119110
grep "CC 1 " "${temp}/stdout"
120111
} > "${stdout}" 2>&1
121-
122112
echo "👍🏻 MethodDeclaration works correctly"

0 commit comments

Comments
 (0)