The trackLog field is declared as static, which creates shared state across all Trek instances. This can cause issues in testing (as evidenced by the need to clear it in setUp) and in scenarios where multiple Trek instances might exist. Consider making this an instance field instead.
List<Coords2d> trackLog = [ ]
Originally posted by @Copilot in #214 (comment)
The trackLog field is declared as static, which creates shared state across all Trek instances. This can cause issues in testing (as evidenced by the need to clear it in setUp) and in scenarios where multiple Trek instances might exist. Consider making this an instance field instead.
Originally posted by @Copilot in #214 (comment)