Skip to content

Commit 2065974

Browse files
committed
improve coveralls
1 parent fa374c7 commit 2065974

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

PathPlanning/FrenetOptimalTrajectory/cubic_spline_planner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def calc_spline_course(x, y, ds=0.1):
192192
return rx, ry, ryaw, rk, s
193193

194194

195-
def main():
195+
def main(): # pragma: no cover
196196
print("Spline 2D test")
197197
import matplotlib.pyplot as plt
198198
x = [-2.5, 0.0, 2.5, 5.0, 7.5, 3.0, -1.0]
@@ -235,5 +235,5 @@ def main():
235235
plt.show()
236236

237237

238-
if __name__ == '__main__':
238+
if __name__ == '__main__': # pragma: no cover
239239
main()

PathPlanning/ModelPredictiveTrajectoryGenerator/model_predictive_trajectory_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def optimize_trajectory(target, k0, p):
131131
return xc, yc, yawc, p
132132

133133

134-
def test_optimize_trajectory():
134+
def test_optimize_trajectory(): # pragma: no cover
135135

136136
# target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(00.0))
137137
target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(90.0))
@@ -149,7 +149,7 @@ def test_optimize_trajectory():
149149
plt.show()
150150

151151

152-
def main():
152+
def main(): # pragma: no cover
153153
print(__file__ + " start!!")
154154
test_optimize_trajectory()
155155

tests/test_cgmres_nmpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import TestCase
22

33
import sys
4-
if 'cvxpy' in sys.modules:
4+
if 'cvxpy' in sys.modules: # pragma: no cover
55
sys.path.append("./PathTracking/cgmres_nmpc/")
66

77
from PathTracking.cgmres_nmpc import cgmres_nmpc as m

tests/test_model_predictive_speed_and_steer_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import TestCase
22

33
import sys
4-
if 'cvxpy' in sys.modules:
4+
if 'cvxpy' in sys.modules: # pragma: no cover
55
sys.path.append("./PathTracking/model_predictive_speed_and_steer_control/")
66

77
from PathTracking.model_predictive_speed_and_steer_control import model_predictive_speed_and_steer_control as m

0 commit comments

Comments
 (0)