github
60 of 95 branches covered (63.16%)
Branch coverage included in aggregate %.
103 of 137 new or added lines in 7 files covered. (75.18%)
63 existing lines in 2 files now uncovered.239 of 340 relevant lines covered (70.29%)
1.41 hits per line
1 |
#!/usr/bin/env python
|
|
2 |
|
|
3 |
|
|
UNCOV
4
|
import fire |
× |
5 |
|
|
UNCOV
6
|
from stocktracer.cli import Cli |
× |
7 |
|
|
8 |
|
|
UNCOV
9
|
def main_cli() -> any: |
× |
10 |
"""Entrypoint
|
|
11 |
|
|
12 |
Returns: |
|
13 |
any: normal return values from main |
|
14 |
""" |
|
UNCOV
15
|
cli = Cli() |
× |
NEW
|
try:
|
× |
NEW
|
return fire.Fire(component=cli, name="stocktracer") |
× |
NEW
|
except Exception as e: |
× |
19 |
# return e # No stack dump
|
|
NEW
|
raise e # stack dump |
× |
21 |
|
|
22 |
|
|
23 |
if __name__ == "__main__": |
|
24 |
exit(main_cli())
|