forked from UnitTestBot/UTBotJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstructors.py
More file actions
36 lines (22 loc) · 744 Bytes
/
constructors.py
File metadata and controls
36 lines (22 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class EmptyClass:
pass
class WithInitClass:
def __init__(self, x: int):
self.x = x
class EmptyInitClass:
def __init__(self):
pass
class BasicNewCass:
def __new__(cls, *args, **kwargs):
super().__new__(cls, *args, **kwargs)
class ParentEmptyInitClass(EmptyClass):
pass
class ParentWithInitClass(WithInitClass):
pass
class ParentEmptyClass(EmptyClass):
pass
def func(a: EmptyClass, b: WithInitClass, c: EmptyInitClass, d: BasicNewCass, e: ParentEmptyClass,
f: ParentWithInitClass, g: ParentEmptyInitClass):
return a.__class__.__name__ + str(
b.x) + c.__class__.__name__ + d.__class__.__name__ + e.__class__.__name__ + str(
f.x) + g.__class__.__name__