improve coveralls

This commit is contained in:
Atsushi Sakai
2019-02-10 21:06:12 +09:00
parent fa374c7477
commit 206597482d
4 changed files with 6 additions and 6 deletions

View File

@@ -192,7 +192,7 @@ def calc_spline_course(x, y, ds=0.1):
return rx, ry, ryaw, rk, s
def main():
def main(): # pragma: no cover
print("Spline 2D test")
import matplotlib.pyplot as plt
x = [-2.5, 0.0, 2.5, 5.0, 7.5, 3.0, -1.0]
@@ -235,5 +235,5 @@ def main():
plt.show()
if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
main()

View File

@@ -131,7 +131,7 @@ def optimize_trajectory(target, k0, p):
return xc, yc, yawc, p
def test_optimize_trajectory():
def test_optimize_trajectory(): # pragma: no cover
# target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(00.0))
target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(90.0))
@@ -149,7 +149,7 @@ def test_optimize_trajectory():
plt.show()
def main():
def main(): # pragma: no cover
print(__file__ + " start!!")
test_optimize_trajectory()

View File

@@ -1,7 +1,7 @@
from unittest import TestCase
import sys
if 'cvxpy' in sys.modules:
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./PathTracking/cgmres_nmpc/")
from PathTracking.cgmres_nmpc import cgmres_nmpc as m

View File

@@ -1,7 +1,7 @@
from unittest import TestCase
import sys
if 'cvxpy' in sys.modules:
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./PathTracking/model_predictive_speed_and_steer_control/")
from PathTracking.model_predictive_speed_and_steer_control import model_predictive_speed_and_steer_control as m