testgenie-py 0.3.0__py3-none-any.whl → 0.3.1__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/analyzer/ast_analyzer.py +0 -1
- testgen/controller/cli_controller.py +9 -0
- testgen/controller/docker_controller.py +9 -1
- testgen/generator/doctest_generator.py +0 -1
- testgen/service/service.py +33 -0
- testgen/testgen.db +0 -0
- {testgenie_py-0.3.0.dist-info → testgenie_py-0.3.1.dist-info}/METADATA +1 -1
- {testgenie_py-0.3.0.dist-info → testgenie_py-0.3.1.dist-info}/RECORD +10 -21
- testgen/.coverage +0 -0
- testgen/code_to_test/__init__.py +0 -0
- testgen/code_to_test/boolean.py +0 -146
- testgen/code_to_test/calculator.py +0 -29
- testgen/code_to_test/code_to_fuzz.py +0 -329
- testgen/code_to_test/code_to_fuzz_lite.py +0 -397
- testgen/code_to_test/decisions.py +0 -57
- testgen/code_to_test/math_utils.py +0 -47
- testgen/code_to_test/sample_code_bin.py +0 -141
- testgen/tests/__init__.py +0 -0
- testgen/tests/test_code_to_fuzz.py +0 -263
- {testgenie_py-0.3.0.dist-info → testgenie_py-0.3.1.dist-info}/WHEEL +0 -0
- {testgenie_py-0.3.0.dist-info → testgenie_py-0.3.1.dist-info}/entry_points.txt +0 -0
@@ -1,57 +0,0 @@
|
|
1
|
-
def password_strength(pwd: str) ->str:
|
2
|
-
""">>> password_strength('abc')
|
3
|
-
'weak'"""
|
4
|
-
if len(pwd) < 6:
|
5
|
-
return 'weak'
|
6
|
-
elif len(pwd) < 10:
|
7
|
-
if any(c.isdigit() for c in pwd):
|
8
|
-
return 'medium'
|
9
|
-
else:
|
10
|
-
return 'weak'
|
11
|
-
elif any(c.isdigit() for c in pwd) and any(c.isupper() for c in pwd):
|
12
|
-
return 'strong'
|
13
|
-
else:
|
14
|
-
return 'medium'
|
15
|
-
|
16
|
-
|
17
|
-
def email_type(email: str) ->str:
|
18
|
-
""">>> email_type('abc')
|
19
|
-
'invalid'"""
|
20
|
-
if not email or '@' not in email:
|
21
|
-
return 'invalid'
|
22
|
-
elif email.endswith('@school.edu'):
|
23
|
-
return 'school'
|
24
|
-
elif email.endswith('@company.com'):
|
25
|
-
return 'work'
|
26
|
-
elif email.endswith('@gmail.com') or email.endswith('@yahoo.com'):
|
27
|
-
return 'personal'
|
28
|
-
else:
|
29
|
-
return 'unknown'
|
30
|
-
|
31
|
-
|
32
|
-
def http_code(code: int) ->str:
|
33
|
-
""">>> http_code(85)
|
34
|
-
'invalid'"""
|
35
|
-
if code < 100 or code > 599:
|
36
|
-
return 'invalid'
|
37
|
-
elif 100 <= code < 200:
|
38
|
-
return 'informational'
|
39
|
-
elif 200 <= code < 300:
|
40
|
-
return 'success'
|
41
|
-
elif 300 <= code < 400:
|
42
|
-
return 'redirection'
|
43
|
-
elif 400 <= code < 500:
|
44
|
-
return 'client error'
|
45
|
-
else:
|
46
|
-
return 'server error'
|
47
|
-
|
48
|
-
|
49
|
-
def add_or_subtract(x: int, y: int) ->int:
|
50
|
-
""">>> add_or_subtract(87, 100)
|
51
|
-
187"""
|
52
|
-
result = x
|
53
|
-
if x < y:
|
54
|
-
result += y
|
55
|
-
else:
|
56
|
-
result -= y
|
57
|
-
return result
|
@@ -1,47 +0,0 @@
|
|
1
|
-
def categorize_number(n: int) -> str:
|
2
|
-
if n < 0:
|
3
|
-
return "negative"
|
4
|
-
elif n == 0:
|
5
|
-
return "zero"
|
6
|
-
elif 0 < n < 10:
|
7
|
-
return "small"
|
8
|
-
elif 10 <= n < 100:
|
9
|
-
return "medium"
|
10
|
-
else:
|
11
|
-
return "large"
|
12
|
-
|
13
|
-
def complex_divide(a: int, b: int) -> float:
|
14
|
-
if b == 0:
|
15
|
-
return float("inf")
|
16
|
-
elif a == 0:
|
17
|
-
return 0.0
|
18
|
-
elif a == b:
|
19
|
-
return 1.0
|
20
|
-
elif a > b:
|
21
|
-
return a / b
|
22
|
-
else:
|
23
|
-
return -1 * (a / b)
|
24
|
-
|
25
|
-
def pos_or_neg(i: int) -> int:
|
26
|
-
if i > 0:
|
27
|
-
sgn = 1
|
28
|
-
else:
|
29
|
-
sgn = -1
|
30
|
-
if sgn > 0:
|
31
|
-
return 1
|
32
|
-
elif sgn < 0:
|
33
|
-
return -1
|
34
|
-
|
35
|
-
def is_even(x: int) -> bool:
|
36
|
-
if x % 2 == 0:
|
37
|
-
return True
|
38
|
-
else:
|
39
|
-
return False
|
40
|
-
|
41
|
-
def is_odd(x: int) -> bool:
|
42
|
-
if x % 2 != 0:
|
43
|
-
return True
|
44
|
-
else:
|
45
|
-
return False
|
46
|
-
|
47
|
-
|
@@ -1,141 +0,0 @@
|
|
1
|
-
from typing import List
|
2
|
-
|
3
|
-
class SampleCodeBin:
|
4
|
-
def bin_and(self, a: bool, b: bool) -> bool:
|
5
|
-
"""
|
6
|
-
>>> SampleCodeBin().bin_and(False, False)
|
7
|
-
False
|
8
|
-
"""
|
9
|
-
return a and b
|
10
|
-
|
11
|
-
def bin_or(self, a: bool, b: bool) -> bool:
|
12
|
-
"""
|
13
|
-
>>> SampleCodeBin().bin_or(False, False)
|
14
|
-
False
|
15
|
-
"""
|
16
|
-
return a | b
|
17
|
-
|
18
|
-
def bin_xor(self, a: bool, b: bool) -> bool:
|
19
|
-
"""
|
20
|
-
>>> SampleCodeBin().bin_xor(True, True)
|
21
|
-
False
|
22
|
-
"""
|
23
|
-
return a ^ b
|
24
|
-
|
25
|
-
def bin_nand(self, a: bool, b: bool) -> bool:
|
26
|
-
"""
|
27
|
-
>>> SampleCodeBin().bin_nand(True, False)
|
28
|
-
True
|
29
|
-
"""
|
30
|
-
return not(a and b)
|
31
|
-
|
32
|
-
def bin_nor(self, a: bool, b:bool) -> bool:
|
33
|
-
"""
|
34
|
-
>>> SampleCodeBin().bin_nor(True, False)
|
35
|
-
False
|
36
|
-
"""
|
37
|
-
return not(a | b)
|
38
|
-
|
39
|
-
def mux(self, c1: bool, c2: bool, x0: bool, x1: bool, x2: bool, x3: bool) -> bool:
|
40
|
-
"""
|
41
|
-
>>> SampleCodeBin().mux(True, True, True, False, True, False)
|
42
|
-
True
|
43
|
-
"""
|
44
|
-
return (c1 and c2 and x0) | (c1 and (not(c2)) and x1) | (not(c1) and c2 and x2) | (not(c1) and not(c2) and x3)
|
45
|
-
|
46
|
-
def bin_and_bad(self, a: bool, b: bool) -> bool:
|
47
|
-
"""
|
48
|
-
>>> SampleCodeBin().bin_and_bad(True, True)
|
49
|
-
True
|
50
|
-
>>> SampleCodeBin().bin_and_bad(False, True)
|
51
|
-
True
|
52
|
-
"""
|
53
|
-
if(a == True and b == True):
|
54
|
-
return a and b
|
55
|
-
return a or b
|
56
|
-
|
57
|
-
def bin_or_bad(self, a: bool, b: bool) -> bool:
|
58
|
-
"""
|
59
|
-
>>> SampleCodeBin().bin_or_bad(False, False)
|
60
|
-
True
|
61
|
-
"""
|
62
|
-
return not(a | b)
|
63
|
-
|
64
|
-
"""def bit_converter_excep(self, num: int) -> List[int]:
|
65
|
-
# binary_str: str = bin(num)[2:]
|
66
|
-
bs = bin(num)
|
67
|
-
binary_str = bs[2:]
|
68
|
-
try:
|
69
|
-
return [int(digit) for digit in binary_str]
|
70
|
-
except Exception as e:
|
71
|
-
print(binary_str)
|
72
|
-
print(bs)
|
73
|
-
print(f"Invalid Literal Exception in Bit Converter: {e}")
|
74
|
-
return
|
75
|
-
|
76
|
-
def bit_converter(self, num: int) -> List[int]:
|
77
|
-
binary_str: str = bin(num)[2:]
|
78
|
-
return [int(digit) for digit in binary_str]
|
79
|
-
|
80
|
-
def half_adder(self, a: bool, b: bool) -> tuple:
|
81
|
-
sum: bool = self.bin_xor(a, b)
|
82
|
-
carry: bool = self.bin_and(a, b)
|
83
|
-
return (sum, carry)
|
84
|
-
|
85
|
-
def full_adder(self, a: bool, b: bool, carry_in: bool) -> tuple:
|
86
|
-
sum1, carry = self.half_adder(a, b)
|
87
|
-
sum2, carry_out = self.half_adder(sum1, carry_in)
|
88
|
-
return (sum2, carry or carry_out)
|
89
|
-
|
90
|
-
def thirty_two_bit_adder_excep(self, x: int, y: int) -> List[int]:
|
91
|
-
x_bits: List[int] = self.bit_converter(x)
|
92
|
-
y_bits: List[int] = self.bit_converter(y)
|
93
|
-
result: List[int] = [0] * 32
|
94
|
-
carry: bool = False
|
95
|
-
|
96
|
-
for i in range(32):
|
97
|
-
try:
|
98
|
-
sum_bit, carry = self.full_adder(x_bits[i], y_bits[i], carry)
|
99
|
-
result[i] = sum_bit
|
100
|
-
except IndexError as e:
|
101
|
-
print(f"Index Out of Bounds Error In ThirtyTwoBitAdder: {e}")
|
102
|
-
result = [1] * 32
|
103
|
-
|
104
|
-
if carry:
|
105
|
-
return OverflowError("Sum exceeds 32 bits")
|
106
|
-
|
107
|
-
return result
|
108
|
-
|
109
|
-
def thirty_two_bit_adder(self, x: int, y: int) -> List[int]:
|
110
|
-
print(x.bit_length() - 1)
|
111
|
-
print(y.bit_length() -1)
|
112
|
-
x_bits: List[int] = self.bit_converter(x)
|
113
|
-
y_bits: List[int] = self.bit_converter(y)
|
114
|
-
|
115
|
-
#if(len(x_bits) > 32 or len(y_bits) >= 32):
|
116
|
-
# print(f"Length of bit list greater than 32")
|
117
|
-
|
118
|
-
result: List[int] = [0] * 32
|
119
|
-
carry: bool = False
|
120
|
-
|
121
|
-
for i in range(32):
|
122
|
-
sum_bit, carry = self.full_adder(x_bits[i], y_bits[i], carry)
|
123
|
-
result[i] = sum_bit
|
124
|
-
|
125
|
-
return result
|
126
|
-
|
127
|
-
|
128
|
-
def thirty_two_bit_adder_excep(self, x: int, y: int) -> List[int]:
|
129
|
-
#print(x.bit_length - 1)
|
130
|
-
#peint(x.bit_length - 1)
|
131
|
-
x_bits: List[int] = self.bit_converter(x)
|
132
|
-
y_bits: List[int] = self.bit_converter(y)
|
133
|
-
|
134
|
-
result: List[int] = [0] * 32
|
135
|
-
carry: bool = False
|
136
|
-
|
137
|
-
for i in range(32):
|
138
|
-
sum_bit, carry = self.full_adder(x_bits[i], y_bits[i], carry)
|
139
|
-
result[i] = sum_bit
|
140
|
-
|
141
|
-
return result"""
|
testgen/tests/__init__.py
DELETED
File without changes
|
@@ -1,263 +0,0 @@
|
|
1
|
-
import unittest
|
2
|
-
|
3
|
-
import testgen.code_to_test.code_to_fuzz as code_to_fuzz
|
4
|
-
|
5
|
-
class TestNone(unittest.TestCase):
|
6
|
-
|
7
|
-
def test_random_fuzz_code_0(self):
|
8
|
-
args = (1927227313, 775789320)
|
9
|
-
expected = 1151437993
|
10
|
-
result = code_to_fuzz.random_fuzz_code(*args)
|
11
|
-
self.assertEqual(result, expected)
|
12
|
-
|
13
|
-
def test_random_fuzz_code_1(self):
|
14
|
-
args = (1359311181, 1603562853)
|
15
|
-
expected = 2962874034
|
16
|
-
result = code_to_fuzz.random_fuzz_code(*args)
|
17
|
-
self.assertEqual(result, expected)
|
18
|
-
|
19
|
-
def test_bin_and_2(self):
|
20
|
-
args = (False, False)
|
21
|
-
expected = False
|
22
|
-
result = code_to_fuzz.bin_and(*args)
|
23
|
-
self.assertEqual(result, expected)
|
24
|
-
|
25
|
-
def test_bin_and_3(self):
|
26
|
-
args = (True, True)
|
27
|
-
expected = True
|
28
|
-
result = code_to_fuzz.bin_and(*args)
|
29
|
-
self.assertEqual(result, expected)
|
30
|
-
|
31
|
-
def test_bin_and_4(self):
|
32
|
-
args = (True, False)
|
33
|
-
expected = False
|
34
|
-
result = code_to_fuzz.bin_and(*args)
|
35
|
-
self.assertEqual(result, expected)
|
36
|
-
|
37
|
-
def test_pos_or_neg_5(self):
|
38
|
-
args = 1381971091
|
39
|
-
expected = 1
|
40
|
-
result = code_to_fuzz.pos_or_neg(args)
|
41
|
-
self.assertEqual(result, expected)
|
42
|
-
|
43
|
-
def test_pos_or_neg_6(self):
|
44
|
-
args = -1792272568
|
45
|
-
expected = -1
|
46
|
-
result = code_to_fuzz.pos_or_neg(args)
|
47
|
-
self.assertEqual(result, expected)
|
48
|
-
|
49
|
-
def test_int_even_7(self):
|
50
|
-
args = 612556544
|
51
|
-
expected = True
|
52
|
-
result = code_to_fuzz.int_even(args)
|
53
|
-
self.assertEqual(result, expected)
|
54
|
-
|
55
|
-
def test_int_even_8(self):
|
56
|
-
args = 1538337835
|
57
|
-
expected = False
|
58
|
-
result = code_to_fuzz.int_even(args)
|
59
|
-
self.assertEqual(result, expected)
|
60
|
-
|
61
|
-
def test_http_code_9(self):
|
62
|
-
args = 1748799535
|
63
|
-
expected = 'invalid'
|
64
|
-
result = code_to_fuzz.http_code(args)
|
65
|
-
self.assertEqual(result, expected)
|
66
|
-
|
67
|
-
def test_add_or_subtract_10(self):
|
68
|
-
args = (1167731537, 1136934405)
|
69
|
-
expected = 30797132
|
70
|
-
result = code_to_fuzz.add_or_subtract(*args)
|
71
|
-
self.assertEqual(result, expected)
|
72
|
-
|
73
|
-
def test_add_or_subtract_11(self):
|
74
|
-
args = (506636609, 1260222214)
|
75
|
-
expected = 1766858823
|
76
|
-
result = code_to_fuzz.add_or_subtract(*args)
|
77
|
-
self.assertEqual(result, expected)
|
78
|
-
|
79
|
-
def test_bin_and_bad_generated_function_12(self):
|
80
|
-
args = (False, False)
|
81
|
-
expected = False
|
82
|
-
result = code_to_fuzz.bin_and_bad_generated_function(*args)
|
83
|
-
self.assertEqual(result, expected)
|
84
|
-
|
85
|
-
def test_bin_and_bad_generated_function_13(self):
|
86
|
-
args = (True, True)
|
87
|
-
expected = True
|
88
|
-
result = code_to_fuzz.bin_and_bad_generated_function(*args)
|
89
|
-
self.assertEqual(result, expected)
|
90
|
-
|
91
|
-
def test_bin_and_bad_generated_function_14(self):
|
92
|
-
args = (False, True)
|
93
|
-
expected = True
|
94
|
-
result = code_to_fuzz.bin_and_bad_generated_function(*args)
|
95
|
-
self.assertEqual(result, expected)
|
96
|
-
|
97
|
-
def test_bin_nand_generated_function_15(self):
|
98
|
-
args = (False, False)
|
99
|
-
expected = True
|
100
|
-
result = code_to_fuzz.bin_nand_generated_function(*args)
|
101
|
-
self.assertEqual(result, expected)
|
102
|
-
|
103
|
-
def test_bin_nand_generated_function_16(self):
|
104
|
-
args = (True, True)
|
105
|
-
expected = False
|
106
|
-
result = code_to_fuzz.bin_nand_generated_function(*args)
|
107
|
-
self.assertEqual(result, expected)
|
108
|
-
|
109
|
-
def test_bin_nand_generated_function_17(self):
|
110
|
-
args = (True, False)
|
111
|
-
expected = True
|
112
|
-
result = code_to_fuzz.bin_nand_generated_function(*args)
|
113
|
-
self.assertEqual(result, expected)
|
114
|
-
|
115
|
-
def test_bin_nand_generated_function_18(self):
|
116
|
-
args = (False, True)
|
117
|
-
expected = True
|
118
|
-
result = code_to_fuzz.bin_nand_generated_function(*args)
|
119
|
-
self.assertEqual(result, expected)
|
120
|
-
|
121
|
-
def test_bin_nor_generated_function_19(self):
|
122
|
-
args = (True, True)
|
123
|
-
expected = False
|
124
|
-
result = code_to_fuzz.bin_nor_generated_function(*args)
|
125
|
-
self.assertEqual(result, expected)
|
126
|
-
|
127
|
-
def test_bin_nor_generated_function_20(self):
|
128
|
-
args = (False, True)
|
129
|
-
expected = False
|
130
|
-
result = code_to_fuzz.bin_nor_generated_function(*args)
|
131
|
-
self.assertEqual(result, expected)
|
132
|
-
|
133
|
-
def test_bin_nor_generated_function_21(self):
|
134
|
-
args = (True, False)
|
135
|
-
expected = False
|
136
|
-
result = code_to_fuzz.bin_nor_generated_function(*args)
|
137
|
-
self.assertEqual(result, expected)
|
138
|
-
|
139
|
-
def test_bin_or_generated_function_22(self):
|
140
|
-
args = (False, True)
|
141
|
-
expected = True
|
142
|
-
result = code_to_fuzz.bin_or_generated_function(*args)
|
143
|
-
self.assertEqual(result, expected)
|
144
|
-
|
145
|
-
def test_bin_or_generated_function_23(self):
|
146
|
-
args = (True, False)
|
147
|
-
expected = True
|
148
|
-
result = code_to_fuzz.bin_or_generated_function(*args)
|
149
|
-
self.assertEqual(result, expected)
|
150
|
-
|
151
|
-
def test_bin_or_generated_function_24(self):
|
152
|
-
args = (True, True)
|
153
|
-
expected = True
|
154
|
-
result = code_to_fuzz.bin_or_generated_function(*args)
|
155
|
-
self.assertEqual(result, expected)
|
156
|
-
|
157
|
-
def test_bin_or_generated_function_25(self):
|
158
|
-
args = (False, False)
|
159
|
-
expected = False
|
160
|
-
result = code_to_fuzz.bin_or_generated_function(*args)
|
161
|
-
self.assertEqual(result, expected)
|
162
|
-
|
163
|
-
def test_bin_or_bad_generated_function_26(self):
|
164
|
-
args = (False, True)
|
165
|
-
expected = False
|
166
|
-
result = code_to_fuzz.bin_or_bad_generated_function(*args)
|
167
|
-
self.assertEqual(result, expected)
|
168
|
-
|
169
|
-
def test_bin_or_bad_generated_function_27(self):
|
170
|
-
args = (True, True)
|
171
|
-
expected = False
|
172
|
-
result = code_to_fuzz.bin_or_bad_generated_function(*args)
|
173
|
-
self.assertEqual(result, expected)
|
174
|
-
|
175
|
-
def test_bin_or_bad_generated_function_28(self):
|
176
|
-
args = (False, False)
|
177
|
-
expected = True
|
178
|
-
result = code_to_fuzz.bin_or_bad_generated_function(*args)
|
179
|
-
self.assertEqual(result, expected)
|
180
|
-
|
181
|
-
def test_bin_or_bad_generated_function_29(self):
|
182
|
-
args = (True, False)
|
183
|
-
expected = False
|
184
|
-
result = code_to_fuzz.bin_or_bad_generated_function(*args)
|
185
|
-
self.assertEqual(result, expected)
|
186
|
-
|
187
|
-
def test_bin_xor_generated_function_30(self):
|
188
|
-
args = (True, True)
|
189
|
-
expected = False
|
190
|
-
result = code_to_fuzz.bin_xor_generated_function(*args)
|
191
|
-
self.assertEqual(result, expected)
|
192
|
-
|
193
|
-
def test_bin_xor_generated_function_31(self):
|
194
|
-
args = (True, False)
|
195
|
-
expected = True
|
196
|
-
result = code_to_fuzz.bin_xor_generated_function(*args)
|
197
|
-
self.assertEqual(result, expected)
|
198
|
-
|
199
|
-
def test_bin_xor_generated_function_32(self):
|
200
|
-
args = (False, True)
|
201
|
-
expected = True
|
202
|
-
result = code_to_fuzz.bin_xor_generated_function(*args)
|
203
|
-
self.assertEqual(result, expected)
|
204
|
-
|
205
|
-
def test_bin_xor_generated_function_33(self):
|
206
|
-
args = (False, False)
|
207
|
-
expected = False
|
208
|
-
result = code_to_fuzz.bin_xor_generated_function(*args)
|
209
|
-
self.assertEqual(result, expected)
|
210
|
-
|
211
|
-
def test_mux_generated_function_34(self):
|
212
|
-
args = (True, False, False, True, False, False)
|
213
|
-
expected = True
|
214
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
215
|
-
self.assertEqual(result, expected)
|
216
|
-
|
217
|
-
def test_mux_generated_function_35(self):
|
218
|
-
args = (False, True, False, False, True, False)
|
219
|
-
expected = True
|
220
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
221
|
-
self.assertEqual(result, expected)
|
222
|
-
|
223
|
-
def test_mux_generated_function_36(self):
|
224
|
-
args = (True, False, False, False, True, True)
|
225
|
-
expected = False
|
226
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
227
|
-
self.assertEqual(result, expected)
|
228
|
-
|
229
|
-
def test_mux_generated_function_37(self):
|
230
|
-
args = (False, True, False, True, False, True)
|
231
|
-
expected = False
|
232
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
233
|
-
self.assertEqual(result, expected)
|
234
|
-
|
235
|
-
def test_mux_generated_function_38(self):
|
236
|
-
args = (False, False, True, False, True, False)
|
237
|
-
expected = False
|
238
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
239
|
-
self.assertEqual(result, expected)
|
240
|
-
|
241
|
-
def test_mux_generated_function_39(self):
|
242
|
-
args = (True, False, False, False, False, False)
|
243
|
-
expected = False
|
244
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
245
|
-
self.assertEqual(result, expected)
|
246
|
-
|
247
|
-
def test_mux_generated_function_40(self):
|
248
|
-
args = (False, True, True, True, True, True)
|
249
|
-
expected = True
|
250
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
251
|
-
self.assertEqual(result, expected)
|
252
|
-
|
253
|
-
def test_mux_generated_function_41(self):
|
254
|
-
args = (False, False, False, True, False, False)
|
255
|
-
expected = False
|
256
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
257
|
-
self.assertEqual(result, expected)
|
258
|
-
|
259
|
-
def test_mux_generated_function_42(self):
|
260
|
-
args = (True, False, True, True, True, False)
|
261
|
-
expected = True
|
262
|
-
result = code_to_fuzz.mux_generated_function(*args)
|
263
|
-
self.assertEqual(result, expected)
|
File without changes
|
File without changes
|