In this test case, the function `XTimesFour()` will call `XTimesTwo()`, so both of them are added to the function library.
| 141 | // In this test case, the function `XTimesFour()` will call `XTimesTwo()`, so |
| 142 | // both of them are added to the function library. |
| 143 | MapDatasetParams MapDatasetParams3() { |
| 144 | return { |
| 145 | {/*start=*/0, /*stop=*/10, /*step=*/3}, |
| 146 | /*other_arguments=*/{}, |
| 147 | /*func=*/ |
| 148 | FunctionDefHelper::FunctionRef("XTimesFour", {{"T", DT_INT64}}), |
| 149 | /*func_lib=*/{test::function::XTimesTwo(), test::function::XTimesFour()}, |
| 150 | /*type_arguments=*/{}, |
| 151 | /*output_dtypes=*/{DT_INT64}, |
| 152 | /*output_shapes=*/{PartialTensorShape({})}, |
| 153 | /*use_inter_op_parallelism=*/false, |
| 154 | /*preserve_cardinality=*/true, |
| 155 | /*node_name=*/kNodeName}; |
| 156 | } |
| 157 | |
| 158 | std::vector<GetNextTestCase<MapDatasetParams>> GetNextTestCases() { |
| 159 | return {{/*dataset_params=*/MapDatasetParams1(), |
no test coverage detected