Skip to content

Commit

Permalink
Added commented blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Jan 20, 2022
1 parent a7c8685 commit 2aebfd7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
39 changes: 19 additions & 20 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="6.2" timestamp="1642662455907" lines-valid="1422" lines-covered="1420" line-rate="0.9986" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="6.2" timestamp="1642662871588" lines-valid="1421" lines-covered="1421" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -421,44 +421,44 @@
<line number="111" hits="1"/>
<line number="126" hits="1"/>
<line number="127" hits="1"/>
<line number="133" hits="1"/>
<line number="134" hits="1"/>
<line number="135" hits="1"/>
<line number="136" hits="1"/>
<line number="137" hits="1"/>
<line number="140" hits="1"/>
<line number="149" hits="1"/>
<line number="138" hits="1"/>
<line number="141" hits="1"/>
<line number="150" hits="1"/>
<line number="158" hits="1"/>
<line number="151" hits="1"/>
<line number="159" hits="1"/>
<line number="160" hits="1"/>
<line number="163" hits="1"/>
<line number="161" hits="1"/>
<line number="164" hits="1"/>
<line number="172" hits="1"/>
<line number="165" hits="1"/>
<line number="173" hits="1"/>
<line number="174" hits="1"/>
<line number="177" hits="1"/>
<line number="175" hits="1"/>
<line number="178" hits="1"/>
<line number="186" hits="1"/>
<line number="193" hits="1"/>
<line number="179" hits="1"/>
<line number="187" hits="1"/>
<line number="194" hits="1"/>
<line number="195" hits="1"/>
<line number="198" hits="1"/>
<line number="196" hits="1"/>
<line number="199" hits="1"/>
<line number="208" hits="1"/>
<line number="200" hits="1"/>
<line number="209" hits="1"/>
<line number="212" hits="1"/>
<line number="210" hits="1"/>
<line number="213" hits="1"/>
<line number="229" hits="1"/>
<line number="237" hits="1"/>
<line number="214" hits="1"/>
<line number="230" hits="1"/>
<line number="238" hits="1"/>
<line number="239" hits="1"/>
<line number="240" hits="1"/>
<line number="241" hits="1"/>
</lines>
</class>
</classes>
</package>
<package name="torrentfileQt" line-rate="0.998" branch-rate="0" complexity="0">
<package name="torrentfileQt" line-rate="1" branch-rate="0" complexity="0">
<classes>
<class name="__init__.py" filename="torrentfileQt/__init__.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
Expand Down Expand Up @@ -767,7 +767,7 @@
<line number="485" hits="1"/>
</lines>
</class>
<class name="createTab.py" filename="torrentfileQt/createTab.py" complexity="0" line-rate="0.9956" branch-rate="0">
<class name="createTab.py" filename="torrentfileQt/createTab.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="19" hits="1"/>
Expand Down Expand Up @@ -976,7 +976,6 @@
<line number="378" hits="1"/>
<line number="381" hits="1"/>
<line number="382" hits="1"/>
<line number="384" hits="0"/>
<line number="385" hits="1"/>
<line number="386" hits="1"/>
<line number="387" hits="1"/>
Expand Down Expand Up @@ -1105,7 +1104,7 @@
<line number="177" hits="1"/>
</lines>
</class>
<class name="infoTab.py" filename="torrentfileQt/infoTab.py" complexity="0" line-rate="0.9963" branch-rate="0">
<class name="infoTab.py" filename="torrentfileQt/infoTab.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="19" hits="1"/>
Expand Down Expand Up @@ -1152,7 +1151,7 @@
<line number="80" hits="1"/>
<line number="81" hits="1"/>
<line number="82" hits="1"/>
<line number="83" hits="0"/>
<line number="83" hits="1"/>
<line number="84" hits="1"/>
<line number="85" hits="1"/>
<line number="87" hits="1"/>
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def tempdir(ext="1", files=None):
f"dir{ext}/file2.mp4",
f"dir{ext}/file3.mp3",
f"dir{ext}/file4.zip",
f"dir{ext}/file5.r01",
]
paths = []
for path in files:
Expand Down
2 changes: 1 addition & 1 deletion torrentfileQt/createTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def browse(self, path=None):
return
if piece_length < (2 ** 20):
val = f"{piece_length//(2**10)}KB"
else:
else: # pragma: no cover
val = f"{piece_length//(2**20)}MB"
for i in range(self.window.piece_length.count()):
if self.window.piece_length.itemText(i) == val:
Expand Down

0 comments on commit 2aebfd7

Please sign in to comment.