Skip to content

Commit 6d71390

Browse files
committed
added test cases
1 parent ffb37b8 commit 6d71390

File tree

14 files changed

+178
-19
lines changed

14 files changed

+178
-19
lines changed

tests/pyreverse/functional/class_diagrams/aggregation/test_aggregation_filtering.mmd

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/pyreverse/functional/class_diagrams/aggregation/test_aggregation_filtering.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
classDiagram
2+
class P {
3+
name : str
4+
__init__(name: str)
5+
}
6+
class PrivateAttr {
7+
__x
8+
__init__()
9+
}
10+
class ProtectedAttr {
11+
_x
12+
__init__()
13+
}
14+
class PublicAttr {
15+
x
16+
__init__()
17+
}
18+
class SpecialAttr {
19+
__x__
20+
__init__()
21+
}
22+
P --* PrivateAttr : __x
23+
P --* ProtectedAttr : _x
24+
P --* PublicAttr : x
25+
P --* SpecialAttr : __x__
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class P:
2+
def __init__(self, name: str):
3+
self.name = name
4+
5+
6+
class PrivateAttr:
7+
def __init__(self):
8+
self.__x = P("private")
9+
10+
11+
class ProtectedAttr:
12+
def __init__(self):
13+
self._x = P("protected")
14+
15+
16+
class PublicAttr:
17+
def __init__(self):
18+
self.x = P("public")
19+
20+
21+
class SpecialAttr:
22+
def __init__(self):
23+
self.__x__ = P("special")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
command_line_args=--filter-mode=ALL
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
classDiagram
2+
class P {
3+
name : str
4+
__init__(name: str)
5+
}
6+
class PrivateAttr {
7+
__init__()
8+
}
9+
class ProtectedAttr {
10+
__init__()
11+
}
12+
class PublicAttr {
13+
x
14+
__init__()
15+
}
16+
class SpecialAttr {
17+
__x__
18+
__init__()
19+
}
20+
P --* PublicAttr : x
21+
P --* SpecialAttr : __x__
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class P:
2+
def __init__(self, name: str):
3+
self.name = name
4+
5+
6+
class PrivateAttr:
7+
def __init__(self):
8+
self.__x = P("private")
9+
10+
11+
class ProtectedAttr:
12+
def __init__(self):
13+
self._x = P("protected")
14+
15+
16+
class PublicAttr:
17+
def __init__(self):
18+
self.x = P("public")
19+
20+
21+
class SpecialAttr:
22+
def __init__(self):
23+
self.__x__ = P("special")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
command_line_args=--filter-mode=OTHER
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
classDiagram
2+
class P {
3+
name : str
4+
}
5+
class PrivateAttr {
6+
}
7+
class ProtectedAttr {
8+
}
9+
class PublicAttr {
10+
x
11+
}
12+
class SpecialAttr {
13+
}
14+
P --* PublicAttr : x
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class P:
2+
def __init__(self, name: str):
3+
self.name = name
4+
5+
6+
class PrivateAttr:
7+
def __init__(self):
8+
self.__x = P("private")
9+
10+
11+
class ProtectedAttr:
12+
def __init__(self):
13+
self._x = P("protected")
14+
15+
16+
class PublicAttr:
17+
def __init__(self):
18+
self.x = P("public")
19+
20+
21+
class SpecialAttr:
22+
def __init__(self):
23+
self.__x__ = P("special")

0 commit comments

Comments
 (0)