testgenie-py 0.1.3__py3-none-any.whl → 0.1.5__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/inspector/inspector.py +2 -4
- {testgenie_py-0.1.3.dist-info → testgenie_py-0.1.5.dist-info}/METADATA +1 -1
- {testgenie_py-0.1.3.dist-info → testgenie_py-0.1.5.dist-info}/RECORD +5 -6
- testgen/testgen.db +0 -0
- {testgenie_py-0.1.3.dist-info → testgenie_py-0.1.5.dist-info}/WHEEL +0 -0
- {testgenie_py-0.1.3.dist-info → testgenie_py-0.1.5.dist-info}/entry_points.txt +0 -0
testgen/inspector/inspector.py
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
from ast import FunctionType
|
2
2
|
import inspect
|
3
|
-
from testgen.code_to_test import sample_code_bin
|
4
|
-
|
5
3
|
|
6
4
|
class Inspector:
|
7
5
|
|
@@ -26,10 +24,10 @@ class Inspector:
|
|
26
24
|
params = sig.parameters
|
27
25
|
return [param for param, value in params.items() if param != 'self']
|
28
26
|
|
29
|
-
def func_inspect(self) -> list[tuple]:
|
27
|
+
def func_inspect(self, function_name) -> list[tuple]:
|
30
28
|
test_cases: list[tuple] = []
|
31
29
|
|
32
|
-
functions = inspect.getmembers(
|
30
|
+
functions = inspect.getmembers(function_name, inspect.isfunction)
|
33
31
|
|
34
32
|
for name, func in functions:
|
35
33
|
print(f"Function Name: {name}")
|
@@ -24,7 +24,7 @@ testgen/generator/pytest_generator.py,sha256=ZjQKPHlizFK2yx9WabAxkW9sM-xa64d08II
|
|
24
24
|
testgen/generator/test_generator.py,sha256=D2Y3DaWH4fdIc5_9Xrznrkm0urFfhpYxuhL81M7RRaw,710
|
25
25
|
testgen/generator/unit_test_generator.py,sha256=yXg7_A0nOR0jhOfz7yzL6C_6pwoNCwf19Bpr_RW_41I,3596
|
26
26
|
testgen/inspector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
-
testgen/inspector/inspector.py,sha256=
|
27
|
+
testgen/inspector/inspector.py,sha256=6Fve_KenS5tl6fLJxAKjA7VjD8zHXxZcorCCQeHvfac,1779
|
28
28
|
testgen/main.py,sha256=zpLLi8HtPB6p3uMTKPrsRQDREP4i-ZqrOBwroW0XekM,385
|
29
29
|
testgen/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
testgen/models/analysis_context.py,sha256=-mhw_hn26MgF6aJnmj6Hub5jfCi8gmvcf4QNM4l7G2s,1442
|
@@ -47,7 +47,6 @@ testgen/service/service.py,sha256=WcCf8SOYAoElwFoYFpsWfZk8V675AY0pot5-QQp7AP4,15
|
|
47
47
|
testgen/sqlite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
testgen/sqlite/db.py,sha256=RUt88ndT4CQRo9aZzLGXPHRK1iw0LyDEGnoWlOLzKGM,2390
|
49
49
|
testgen/sqlite/db_service.py,sha256=i87YkhMP0VNyug5p1tWUvnzHB8isFcSIRe9vJJTmFLA,8954
|
50
|
-
testgen/testgen.db,sha256=Z_jEiPwXZAQYaY-gEcmPyimo3aDhzgsfu8c7n_iLoSQ,28672
|
51
50
|
testgen/tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
51
|
testgen/tree/node.py,sha256=ONJtbACShN4yNj1X-UslFRgLyBP6mrbg7qZr3c6dWyA,165
|
53
52
|
testgen/tree/tree_utils.py,sha256=gT7jucky6_GWVOlDI6jpv6RMeWCkntGOHIYLvHxD85k,2122
|
@@ -63,7 +62,7 @@ testgen/util/z3_utils/branch_condition.py,sha256=N9FNR-iJmxIC62NpDQNVZ1OP14rXXqY
|
|
63
62
|
testgen/util/z3_utils/constraint_extractor.py,sha256=RXJLpmk6dAvHZ27839VXKXNtdy9St1F-17-pSEFu4bM,1285
|
64
63
|
testgen/util/z3_utils/variable_finder.py,sha256=dUh3F9_L_BDMz1ybiGss09LLcM_egbitgj0FT5Nh9u4,245
|
65
64
|
testgen/util/z3_utils/z3_test_case.py,sha256=cAafR5x7YMsWnqVFYU21h2jHO-SiaTDPdKe44cGQ5_M,4409
|
66
|
-
testgenie_py-0.1.
|
67
|
-
testgenie_py-0.1.
|
68
|
-
testgenie_py-0.1.
|
69
|
-
testgenie_py-0.1.
|
65
|
+
testgenie_py-0.1.5.dist-info/METADATA,sha256=RA9jqZnyJ6sW7wwNvOgNcDrSAUV6HdgIAyR8o99Axe8,804
|
66
|
+
testgenie_py-0.1.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
67
|
+
testgenie_py-0.1.5.dist-info/entry_points.txt,sha256=OUN4GqB4zHlHWwWGjwIPbur4E_ZqQgkeeqaCLhzRZgg,47
|
68
|
+
testgenie_py-0.1.5.dist-info/RECORD,,
|
testgen/testgen.db
DELETED
Binary file
|
File without changes
|
File without changes
|