• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SciKit-Surgery / scikit-surgerynditracker / 1

06 Jun 2024 09:16AM UTC coverage: 14.089% (-83.8%) from 97.938%
1

push

github

web-flow
Merge pull request #86 from SciKit-Surgery/85-update-python

85 update python

0 of 3 new or added lines in 1 file covered. (0.0%)

245 existing lines in 2 files now uncovered.

41 of 291 relevant lines covered (14.09%)

0.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/sksurgerynditracker/serial_utils/com_ports.py
1
"""Utilities to help deal with COM ports"""
2

3

4
def fix_com_port_greater_than_9(device_name):
5✔
5
    """
6
    Checks the device name. If it is a COM port
7
    returns the device name prepended with \\\\.\\
8
    see Microsoft KB115831.
9

10
    :param device_name: string device name
11
    :returns: if device name is COMXX returns \\\\.\\device_name
12
        otherwise returns device name
13
    """
14

UNCOV
15
    if device_name[0:3] != 'COM' or len(device_name) == 4:
×
UNCOV
16
        return device_name
×
UNCOV
17
    return '\\\\.\\' + device_name
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc