oliver-zehentleitner / maity

runner: Tmux.type_line and environment_of are test-only; move them to a test helper (the docstring names a check caller that doesn't exist)

Sign in to report

tsk-khejahbqvs4n Open

Audit round 3b (tsk-hgnbapyw7hnh), read at 80fef076. Kind: dead code / docs drift.

What is wrong

  • Tmux.type_line (cli/src/maity/runner/tmux.py:358-361) has no caller under cli/src; the supervisor calls type_text and submit itself (supervisor.py:836, 905, 932-935). Only cli/tests/test_supervisor.py:2910, 2943, 2948 use it.
  • Tmux.environment_of (tmux.py:363-372) says "for tests and check", but nothing under cli/src calls it; the only caller is test_supervisor.py:1851.

Proposal

  • Move both into a test helper (a subclass or functions in the tests), or keep them on purpose with a docstring that says test-only.

Effort / risk: S. None.