2 from soc
.fu
.mul
.test
.helper
import MulTestHelper
3 from openpower
.test
.mul
.long_mul_cases
import (MulTestCases2Arg
,
7 class TestPipeLong(MulTestHelper
):
8 def test_mul_pipe_2_arg(self
):
9 self
.run_all(MulTestCases2Arg().test_data
, "mul_pipe_caller_long_2_arg",
10 has_third_input
=False)
12 def helper_3_arg(self
, subtest_index
):
13 self
.run_all(MulTestCases3Arg(subtest_index
).test_data
,
14 f
"mul_pipe_caller_long_3_arg_{subtest_index}",
17 # split out as separate functions so some test
18 # runners can test them all in parallel
19 def test_mul_pipe_3_arg_0(self
):
22 def test_mul_pipe_3_arg_1(self
):
25 def test_mul_pipe_3_arg_2(self
):
28 def test_mul_pipe_3_arg_3(self
):
31 def test_mul_pipe_3_arg_4(self
):
34 def test_mul_pipe_3_arg_5(self
):
37 def test_mul_pipe_3_arg_6(self
):
40 def test_mul_pipe_3_arg_7(self
):
43 def test_mul_pipe_3_arg_8(self
):
46 def test_mul_pipe_3_arg_9(self
):
49 def test_mul_pipe_3_arg_10(self
):
52 def test_mul_pipe_3_arg_11(self
):
55 def test_mul_pipe_3_arg_12(self
):
58 def test_mul_pipe_3_arg_13(self
):
61 def test_mul_pipe_3_arg_14(self
):
64 def test_mul_pipe_3_arg_15(self
):
67 def test_all_values_covered(self
):
68 count
= len(MUL_3_ARG_TEST_VALUES
)
69 for i
in range(count
):
70 getattr(self
, f
"test_mul_pipe_3_arg_{i}")
71 with self
.assertRaises(AttributeError):
72 getattr(self
, f
"test_mul_pipe_3_arg_{count}")
75 if __name__
== "__main__":