while True:
linein = replayfp.readline()
proutn(linein)
- if linein == '':
+ if linein == '': # pragma: no cover
prout("*** Replay finished")
replayfp.close()
break
lrscan_window.move(0, 0)
lrscan(silent=False)
-def put_srscan_sym(w, sym):
+def put_srscan_sym(w, sym): # pragma: no cover
"Emit symbol for short-range scan."
srscan_window.move(w.i+1, w.j*2+2)
srscan_window.addch(sym)
def tracktorpedo(w, step, i, n, iquad):
"Torpedo-track animation."
- if not game.options & OPTION_CURSES: # pragma: no cover
+ if not game.options & OPTION_CURSES:
if step == 1:
if n != 1:
skip(1)
elif step in {4, 9}:
skip(1)
proutn("%s " % w)
- else:
+ else: # pragma: no cover
if not damaged(DSRSENS) or game.condition=="docked":
if i != 0 and step == 1:
drawmaps(2)
if goodScan or (abs(i-game.sector.i)<= 1 and abs(j-game.sector.j) <= 1):
if game.quad[i][j] in ('E', 'F'):
if game.iscloaked:
- highvideo()
+ highvideo() # pragma: no cover
textcolor({"green":GREEN,
"yellow":YELLOW,
"red":RED,