add no cover annotations

This commit is contained in:
Atsushi Sakai
2019-08-03 14:22:48 +09:00
parent 98584912e9
commit 625b00b5b8
2 changed files with 4 additions and 5 deletions

View File

@@ -259,7 +259,7 @@ def planning(ox, oy, reso,
return rx, ry
def planning_animation(ox, oy, reso):
def planning_animation(ox, oy, reso) # pragma: no cover:
px, py = planning(ox, oy, reso)
# animation
@@ -281,7 +281,7 @@ def planning_animation(ox, oy, reso):
plt.pause(0.1)
def main():
def main() # pragma: no cover:
print("start!!")
ox = [0.0, 20.0, 50.0, 100.0, 130.0, 40.0, 0.0]

View File

@@ -24,7 +24,6 @@ try:
except ImportError:
raise
show_animation = True
@@ -105,7 +104,7 @@ class RRTDubins(RRT):
return None
def draw_graph(self, rnd=None):
def draw_graph(self, rnd=None): # pragma: no cover
plt.clf()
if rnd is not None:
plt.plot(rnd.x, rnd.y, "^k")
@@ -123,7 +122,7 @@ class RRTDubins(RRT):
self.plot_start_goal_arrow()
plt.pause(0.01)
def plot_start_goal_arrow(self):
def plot_start_goal_arrow(self): # pragma: no cover
dubins_path_planning.plot_arrow(
self.start.x, self.start.y, self.start.yaw)
dubins_path_planning.plot_arrow(