testgenie-py 0.1.9__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- testgen/.coverage +0 -0
- testgen/controller/docker_controller.py +1 -1
- testgen/tests/test_decisions.py +68 -50
- {testgenie_py-0.1.9.dist-info → testgenie_py-0.2.0.dist-info}/METADATA +1 -1
- {testgenie_py-0.1.9.dist-info → testgenie_py-0.2.0.dist-info}/RECORD +7 -7
- {testgenie_py-0.1.9.dist-info → testgenie_py-0.2.0.dist-info}/WHEEL +0 -0
- {testgenie_py-0.1.9.dist-info → testgenie_py-0.2.0.dist-info}/entry_points.txt +0 -0
testgen/.coverage
CHANGED
Binary file
|
@@ -136,7 +136,7 @@ class DockerController:
|
|
136
136
|
|
137
137
|
return docker_client.containers.run(
|
138
138
|
image=image_name,
|
139
|
-
command=["
|
139
|
+
command=["python", "-m", "testgen.main"] + docker_args,
|
140
140
|
volumes={project_root: {"bind": "/controller", "mode": "rw"}},
|
141
141
|
environment=docker_env,
|
142
142
|
detach=True,
|
testgen/tests/test_decisions.py
CHANGED
@@ -3,174 +3,192 @@ import pytest
|
|
3
3
|
import testgen.code_to_test.decisions as decisions
|
4
4
|
|
5
5
|
def test_add_or_subtract_0():
|
6
|
-
args = (
|
7
|
-
expected =
|
6
|
+
args = (12, 71)
|
7
|
+
expected = 83
|
8
8
|
result = decisions.add_or_subtract(*args)
|
9
9
|
assert result == expected
|
10
10
|
|
11
11
|
def test_add_or_subtract_1():
|
12
|
-
args = (
|
13
|
-
expected =
|
12
|
+
args = (7, 81)
|
13
|
+
expected = 88
|
14
14
|
result = decisions.add_or_subtract(*args)
|
15
15
|
assert result == expected
|
16
16
|
|
17
17
|
def test_add_or_subtract_2():
|
18
|
-
args = (
|
19
|
-
expected =
|
18
|
+
args = (97, 75)
|
19
|
+
expected = 22
|
20
20
|
result = decisions.add_or_subtract(*args)
|
21
21
|
assert result == expected
|
22
22
|
|
23
23
|
def test_add_or_subtract_3():
|
24
|
-
args = (
|
25
|
-
expected =
|
24
|
+
args = (38, 40)
|
25
|
+
expected = 78
|
26
26
|
result = decisions.add_or_subtract(*args)
|
27
27
|
assert result == expected
|
28
28
|
|
29
29
|
def test_add_or_subtract_4():
|
30
|
-
args = (
|
31
|
-
expected =
|
30
|
+
args = (66, 3)
|
31
|
+
expected = 63
|
32
32
|
result = decisions.add_or_subtract(*args)
|
33
33
|
assert result == expected
|
34
34
|
|
35
35
|
def test_add_or_subtract_5():
|
36
|
-
args = (
|
37
|
-
expected =
|
36
|
+
args = (84, 10)
|
37
|
+
expected = 74
|
38
38
|
result = decisions.add_or_subtract(*args)
|
39
39
|
assert result == expected
|
40
40
|
|
41
41
|
def test_add_or_subtract_6():
|
42
|
-
args = (
|
43
|
-
expected =
|
42
|
+
args = (95, 89)
|
43
|
+
expected = 6
|
44
44
|
result = decisions.add_or_subtract(*args)
|
45
45
|
assert result == expected
|
46
46
|
|
47
47
|
def test_add_or_subtract_7():
|
48
|
-
args = (
|
49
|
-
expected =
|
48
|
+
args = (57, 12)
|
49
|
+
expected = 45
|
50
50
|
result = decisions.add_or_subtract(*args)
|
51
51
|
assert result == expected
|
52
52
|
|
53
53
|
def test_add_or_subtract_8():
|
54
|
-
args = (
|
55
|
-
expected =
|
54
|
+
args = (64, 98)
|
55
|
+
expected = 162
|
56
56
|
result = decisions.add_or_subtract(*args)
|
57
57
|
assert result == expected
|
58
58
|
|
59
59
|
def test_add_or_subtract_9():
|
60
|
-
args = (
|
61
|
-
expected =
|
60
|
+
args = (94, 80)
|
61
|
+
expected = 14
|
62
62
|
result = decisions.add_or_subtract(*args)
|
63
63
|
assert result == expected
|
64
64
|
|
65
65
|
def test_add_or_subtract_10():
|
66
|
-
args = (
|
67
|
-
expected =
|
66
|
+
args = (26, 3)
|
67
|
+
expected = 23
|
68
68
|
result = decisions.add_or_subtract(*args)
|
69
69
|
assert result == expected
|
70
70
|
|
71
71
|
def test_add_or_subtract_11():
|
72
|
-
args = (
|
73
|
-
expected =
|
72
|
+
args = (91, 39)
|
73
|
+
expected = 52
|
74
74
|
result = decisions.add_or_subtract(*args)
|
75
75
|
assert result == expected
|
76
76
|
|
77
77
|
def test_add_or_subtract_12():
|
78
|
-
args = (
|
79
|
-
expected =
|
78
|
+
args = (53, 42)
|
79
|
+
expected = 11
|
80
80
|
result = decisions.add_or_subtract(*args)
|
81
81
|
assert result == expected
|
82
82
|
|
83
83
|
def test_add_or_subtract_13():
|
84
|
-
args = (
|
85
|
-
expected =
|
84
|
+
args = (15, 42)
|
85
|
+
expected = 57
|
86
86
|
result = decisions.add_or_subtract(*args)
|
87
87
|
assert result == expected
|
88
88
|
|
89
89
|
def test_add_or_subtract_14():
|
90
|
-
args = (
|
91
|
-
expected =
|
90
|
+
args = (13, 67)
|
91
|
+
expected = 80
|
92
92
|
result = decisions.add_or_subtract(*args)
|
93
93
|
assert result == expected
|
94
94
|
|
95
95
|
def test_add_or_subtract_15():
|
96
|
-
args = (
|
97
|
-
expected =
|
96
|
+
args = (62, 92)
|
97
|
+
expected = 154
|
98
98
|
result = decisions.add_or_subtract(*args)
|
99
99
|
assert result == expected
|
100
100
|
|
101
|
-
def
|
102
|
-
args =
|
103
|
-
expected =
|
104
|
-
result = decisions.
|
101
|
+
def test_add_or_subtract_16():
|
102
|
+
args = (91, 2)
|
103
|
+
expected = 89
|
104
|
+
result = decisions.add_or_subtract(*args)
|
105
105
|
assert result == expected
|
106
106
|
|
107
|
-
def
|
108
|
-
args =
|
107
|
+
def test_email_type_17():
|
108
|
+
args = 'abc'
|
109
109
|
expected = 'invalid'
|
110
|
-
result = decisions.
|
110
|
+
result = decisions.email_type(args)
|
111
111
|
assert result == expected
|
112
112
|
|
113
113
|
def test_http_code_18():
|
114
|
-
args =
|
114
|
+
args = 81
|
115
115
|
expected = 'invalid'
|
116
116
|
result = decisions.http_code(args)
|
117
117
|
assert result == expected
|
118
118
|
|
119
119
|
def test_http_code_19():
|
120
|
-
args =
|
120
|
+
args = 60
|
121
121
|
expected = 'invalid'
|
122
122
|
result = decisions.http_code(args)
|
123
123
|
assert result == expected
|
124
124
|
|
125
125
|
def test_http_code_20():
|
126
|
-
args =
|
126
|
+
args = 29
|
127
127
|
expected = 'invalid'
|
128
128
|
result = decisions.http_code(args)
|
129
129
|
assert result == expected
|
130
130
|
|
131
131
|
def test_http_code_21():
|
132
|
-
args =
|
132
|
+
args = 11
|
133
133
|
expected = 'invalid'
|
134
134
|
result = decisions.http_code(args)
|
135
135
|
assert result == expected
|
136
136
|
|
137
137
|
def test_http_code_22():
|
138
|
-
args =
|
138
|
+
args = 79
|
139
139
|
expected = 'invalid'
|
140
140
|
result = decisions.http_code(args)
|
141
141
|
assert result == expected
|
142
142
|
|
143
143
|
def test_http_code_23():
|
144
|
-
args =
|
144
|
+
args = 70
|
145
145
|
expected = 'invalid'
|
146
146
|
result = decisions.http_code(args)
|
147
147
|
assert result == expected
|
148
148
|
|
149
149
|
def test_http_code_24():
|
150
|
-
args =
|
150
|
+
args = 52
|
151
151
|
expected = 'invalid'
|
152
152
|
result = decisions.http_code(args)
|
153
153
|
assert result == expected
|
154
154
|
|
155
155
|
def test_http_code_25():
|
156
|
-
args =
|
156
|
+
args = 41
|
157
157
|
expected = 'invalid'
|
158
158
|
result = decisions.http_code(args)
|
159
159
|
assert result == expected
|
160
160
|
|
161
161
|
def test_http_code_26():
|
162
|
-
args =
|
162
|
+
args = 6
|
163
163
|
expected = 'invalid'
|
164
164
|
result = decisions.http_code(args)
|
165
165
|
assert result == expected
|
166
166
|
|
167
167
|
def test_http_code_27():
|
168
|
-
args =
|
168
|
+
args = 63
|
169
|
+
expected = 'invalid'
|
170
|
+
result = decisions.http_code(args)
|
171
|
+
assert result == expected
|
172
|
+
|
173
|
+
def test_http_code_28():
|
174
|
+
args = 47
|
175
|
+
expected = 'invalid'
|
176
|
+
result = decisions.http_code(args)
|
177
|
+
assert result == expected
|
178
|
+
|
179
|
+
def test_http_code_29():
|
180
|
+
args = 58
|
181
|
+
expected = 'invalid'
|
182
|
+
result = decisions.http_code(args)
|
183
|
+
assert result == expected
|
184
|
+
|
185
|
+
def test_http_code_30():
|
186
|
+
args = 87
|
169
187
|
expected = 'invalid'
|
170
188
|
result = decisions.http_code(args)
|
171
189
|
assert result == expected
|
172
190
|
|
173
|
-
def
|
191
|
+
def test_password_strength_31():
|
174
192
|
args = 'abc'
|
175
193
|
expected = 'weak'
|
176
194
|
result = decisions.password_strength(args)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
testgen/.coverage,sha256=
|
1
|
+
testgen/.coverage,sha256=8BganEuuz-w_13fd_uJZvIIv8AG8eLLy8e6Z651vL-k,69632
|
2
2
|
testgen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
testgen/analyzer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
testgen/analyzer/ast_analyzer.py,sha256=JmqiosxgZJm2fhNDr5VUBpKKHmf8S2HP9Jm0Xl7NnnI,6783
|
@@ -22,7 +22,7 @@ testgen/code_to_test/no_types.py,sha256=kD8CGjVAxVeCjQC45abO773sRNIjiZ4jvhwPRV8-
|
|
22
22
|
testgen/code_to_test/sample_code_bin.py,sha256=kMvV_-oFeAkxUmDx41Pw0iTTmMG1pvX31TezXPWMOkE,4225
|
23
23
|
testgen/controller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
testgen/controller/cli_controller.py,sha256=jSwT6Cy3JQhxFPRXaODdZ1md5uXO83Q0IrYh86sIdiE,8832
|
25
|
-
testgen/controller/docker_controller.py,sha256=
|
25
|
+
testgen/controller/docker_controller.py,sha256=GjuLQTtQyyrRsii3OjQz0rBSrINMN3l0hdCPHs3dtOk,8169
|
26
26
|
testgen/docker/Dockerfile,sha256=OLaWW4i6uUvVQinzYOmazGDAILyM8czcfl-ENkHLKQw,534
|
27
27
|
testgen/docker/poetry.lock,sha256=3ZPF2N4KtpMRc9qfamUXumMw7qGmQHaZDaxJ9_bMo7U,51684
|
28
28
|
testgen/docker/pyproject.toml,sha256=JWhMupWM7aQFO7-teR9sfFahKB3aM4NPO8on5P3TRxw,563
|
@@ -60,7 +60,7 @@ testgen/sqlite/db.py,sha256=RUt88ndT4CQRo9aZzLGXPHRK1iw0LyDEGnoWlOLzKGM,2390
|
|
60
60
|
testgen/sqlite/db_service.py,sha256=i87YkhMP0VNyug5p1tWUvnzHB8isFcSIRe9vJJTmFLA,8954
|
61
61
|
testgen/testgen.db,sha256=iyQiDqur-JoS70QD-VYkJFkgjb_YcK2jBAP2aZvvAhY,106496
|
62
62
|
testgen/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
|
-
testgen/tests/test_decisions.py,sha256=
|
63
|
+
testgen/tests/test_decisions.py,sha256=NF3sTscRMHHTsaV0NzwNsQ4zW2WkPyyTp1C1Sw3rNbQ,4437
|
64
64
|
testgen/tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
65
|
testgen/tree/node.py,sha256=ONJtbACShN4yNj1X-UslFRgLyBP6mrbg7qZr3c6dWyA,165
|
66
66
|
testgen/tree/tree_utils.py,sha256=gT7jucky6_GWVOlDI6jpv6RMeWCkntGOHIYLvHxD85k,2122
|
@@ -76,7 +76,7 @@ testgen/util/z3_utils/branch_condition.py,sha256=N9FNR-iJmxIC62NpDQNVZ1OP14rXXqY
|
|
76
76
|
testgen/util/z3_utils/constraint_extractor.py,sha256=RXJLpmk6dAvHZ27839VXKXNtdy9St1F-17-pSEFu4bM,1285
|
77
77
|
testgen/util/z3_utils/variable_finder.py,sha256=dUh3F9_L_BDMz1ybiGss09LLcM_egbitgj0FT5Nh9u4,245
|
78
78
|
testgen/util/z3_utils/z3_test_case.py,sha256=yF4oJOrXMLzOwDUqXdoeg83MOTl3pvc_lYaZcS01CuQ,4983
|
79
|
-
testgenie_py-0.
|
80
|
-
testgenie_py-0.
|
81
|
-
testgenie_py-0.
|
82
|
-
testgenie_py-0.
|
79
|
+
testgenie_py-0.2.0.dist-info/METADATA,sha256=XPDcG2SFIHYVs9NDfLXeoQpWucP4L347rdpRhWfbhdQ,843
|
80
|
+
testgenie_py-0.2.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
81
|
+
testgenie_py-0.2.0.dist-info/entry_points.txt,sha256=OUN4GqB4zHlHWwWGjwIPbur4E_ZqQgkeeqaCLhzRZgg,47
|
82
|
+
testgenie_py-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|