Skip to content

Commit a2b39bf

Browse files
authored
Merge pull request #33 from RatanShreshtha/Increase_Coverage
Add string formatting for better coverage
2 parents 9a39b3b + cea4fd0 commit a2b39bf

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

tests/async/simple.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
class TestImplementation:
2+
def __init__(self, a, b):
3+
self.a = a
4+
self.b = b
5+
6+
async def get_a_b(self):
7+
s = "a is %s b is %s" % \
8+
(self.a,
9+
self.b)
10+
return s
11+
12+
async def f(self):
13+
return await 1
14+
115
async def f():
216
return await 1

tests/sync/simple.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
class TestImplementation:
2+
def __init__(self, a, b):
3+
self.a = a
4+
self.b = b
5+
6+
def get_a_b(self):
7+
s = "a is %s b is %s" % \
8+
(self.a,
9+
self.b)
10+
return s
11+
12+
def f(self):
13+
return 1
14+
115
def f():
216
return 1

0 commit comments

Comments
 (0)