adding # pragma: no cover

This commit is contained in:
Atsushi Sakai
2019-02-03 11:24:53 +09:00
parent af854d6d1a
commit aefa8990dd
7 changed files with 16 additions and 34 deletions

View File

@@ -202,7 +202,7 @@ class RRT():
# print("rewire")
self.nodeList[i] = tNode
def DrawGraph(self, rnd=None):
def DrawGraph(self, rnd=None): # pragma: no cover
"""
Draw Graph
"""
@@ -288,7 +288,7 @@ def main():
path = rrt.Planning(animation=show_animation)
# Draw final path
if show_animation:
if show_animation: # pragma: no cover
rrt.DrawGraph()
plt.plot([x for (x, y) in path], [y for (x, y) in path], '-r')
plt.grid(True)