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

andgineer / api-db-prototype / 8766121206

20 Apr 2024 03:45PM UTC coverage: 83.956% (-2.9%) from 86.892%
8766121206

push

github

andgineer
upgrade reqs

2 of 2 new or added lines in 2 files covered. (100.0%)

89 existing lines in 23 files now uncovered.

1057 of 1259 relevant lines covered (83.96%)

0.84 hits per line

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

53.33
/src/openapi_server/typing_utils.py
1
import sys
1✔
2

3
if sys.version_info < (3, 7):
1✔
4
    import typing
×
5

6
    def is_generic(klass):
×
7
        """Determine whether klass is a generic class"""
UNCOV
8
        return type(klass) == typing.GenericMeta
×
9

UNCOV
10
    def is_dict(klass):
×
11
        """Determine whether klass is a Dict"""
12
        return klass.__extra__ == dict
×
13

14
    def is_list(klass):
×
15
        """Determine whether klass is a List"""
UNCOV
16
        return klass.__extra__ == list
×
17

18
else:
19

20
    def is_generic(klass):
1✔
21
        """Determine whether klass is a generic class"""
22
        return hasattr(klass, "__origin__")
1✔
23

24
    def is_dict(klass):
1✔
25
        """Determine whether klass is a Dict"""
26
        return klass.__origin__ == dict
1✔
27

28
    def is_list(klass):
1✔
29
        """Determine whether klass is a List"""
30
        return klass.__origin__ == list
1✔
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