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

LudovicRousseau / pyscard / 11323269743
67%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2024 07:56AM UTC
Jobs 20
Files 76
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2024 07:55AM UTC coverage: 64.919% (+0.3%) from 64.591%
11323269743

push

github

LudovicRousseau
Test and improve the synchronization code

Added
-----

* Add tests to bring `Synchronization.py` to 100% coverage
* Add type annotations to the synchronization primitives
* Add `typing_extensions` as a Python 3.9 requirement;
  this is needed to annotate that the `synchronized()` decorator
  takes a function with a certain set of parameter and return types
  and returns a function with the same parameter and return types

Changed
-------

* Make the synchronized function's `self` parameter explicit;
  this allows the `self` parameter to be type-annotated
  so the dependency on the `self.mutex` attribute is explicit
* Use the `self.mutex` lock as a context manager
* Support keyword arguments to synchronized functions

Fixed
-----

* Wrap synchronized functions correctly;
  previous behavior was to lose the function name and docstring

Removed
-------

* Remove `print()` lines that are commented out
* Remove a `bytes` instance check; method names can only be strings

100 of 466 branches covered (21.46%)

21 of 22 new or added lines in 1 file covered. (95.45%)

34 existing lines in 22 files now uncovered.

4210 of 6485 relevant lines covered (64.92%)

4.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.43
29.76% src/smartcard/Synchronization.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% src/smartcard/ExclusiveConnectCardConnection.py
1
0.0
0.0% src/smartcard/sw/ISO7816_4ErrorChecker.py
1
12.24
-0.08% src/smartcard/pcsc/PCSCCardConnection.py
1
0.0
0.0% src/smartcard/pcsc/PCSCCardRequest.py
1
33.33
-1.67% src/smartcard/CardService.py
1
33.33
-1.96% src/smartcard/PassThruCardService.py
1
0.0
0.0% src/smartcard/sw/ISO7816_4_SW1ErrorChecker.py
1
95.03
-0.59% src/smartcard/ATR.py
1
97.56
-2.44% src/smartcard/Exceptions.py
1
0.0
0.0% src/smartcard/sw/ISO7816_8ErrorChecker.py
1
0.0
0.0% src/smartcard/pcsc/PCSCPart10.py
1
0.0
0.0% src/smartcard/CardRequest.py
1
0.0
0.0% src/smartcard/sw/op21_ErrorChecker.py
1
0.0
0.0% src/smartcard/CardType.py
1
0.0
0.0% src/smartcard/sw/ISO7816_9ErrorChecker.py
2
27.03
-3.53% src/smartcard/Session.py
2
39.02
-0.98% src/smartcard/CardConnection.py
2
88.06
-0.53% .tox/py3.13/lib/python3.13/site-packages/smartcard/scard/scard.py
3
88.06
-0.8% .tox/py3.11/lib/python3.11/site-packages/smartcard/scard/scard.py
3
0.0
0.0% src/smartcard/sw/SWExceptions.py
3
88.06
-0.8% .tox/py3.12/lib/python3.12/site-packages/smartcard/scard/scard.py
4
0.0
0.0% src/smartcard/ExclusiveTransmitCardConnection.py
Jobs
ID Job ID Ran Files Coverage
1 11323269743.1 14 Oct 2024 07:56AM UTC 67
43.23
GitHub Action Run
2 11323269743.2 14 Oct 2024 07:56AM UTC 67
43.5
GitHub Action Run
3 11323269743.3 14 Oct 2024 07:56AM UTC 67
43.5
GitHub Action Run
4 11323269743.4 14 Oct 2024 07:56AM UTC 67
43.23
GitHub Action Run
5 11323269743.5 14 Oct 2024 07:56AM UTC 67
43.23
GitHub Action Run
6 11323269743.6 14 Oct 2024 07:56AM UTC 67
34.2
GitHub Action Run
7 11323269743.7 14 Oct 2024 07:56AM UTC 67
40.86
GitHub Action Run
8 11323269743.8 14 Oct 2024 07:56AM UTC 67
41.15
GitHub Action Run
9 11323269743.9 14 Oct 2024 07:56AM UTC 67
43.5
GitHub Action Run
10 11323269743.10 14 Oct 2024 07:56AM UTC 67
27.47
GitHub Action Run
11 11323269743.11 14 Oct 2024 07:56AM UTC 67
42.96
GitHub Action Run
12 11323269743.12 14 Oct 2024 07:56AM UTC 67
42.96
GitHub Action Run
13 11323269743.13 14 Oct 2024 07:57AM UTC 67
42.78
GitHub Action Run
14 11323269743.14 14 Oct 2024 07:57AM UTC 67
42.96
GitHub Action Run
15 11323269743.15 14 Oct 2024 07:57AM UTC 67
40.6
GitHub Action Run
16 11323269743.16 14 Oct 2024 07:57AM UTC 67
42.96
GitHub Action Run
17 11323269743.17 14 Oct 2024 07:57AM UTC 67
42.96
GitHub Action Run
18 11323269743.18 14 Oct 2024 07:57AM UTC 67
42.96
GitHub Action Run
19 11323269743.19 14 Oct 2024 07:58AM UTC 67
27.58
GitHub Action Run
20 11323269743.20 14 Oct 2024 07:58AM UTC 67
40.6
GitHub Action Run
Source Files on build 11323269743
  • Tree
  • List 76
  • Changed 1
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #11323269743
  • 0186f217 on github
  • Prev Build on master (#11317769185)
  • Next Build on master (#11331433530)
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

© 2026 Coveralls, Inc