Test case 2: cache empty data in file.
| 112 | |
| 113 | // Test case 2: cache empty data in file. |
| 114 | TestCase TestCase2() { |
| 115 | return {/*input_tensors*/ {CreateTensor<int64>(TensorShape{0}, {})}, |
| 116 | /*file_name*/ absl::StrCat(testing::TmpDir(), "/empty_cache_data"), |
| 117 | /*expected_outputs*/ {}, |
| 118 | /*expected_output_dtypes*/ {DT_INT64}, |
| 119 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 120 | /*expected_cardinality*/ 0, |
| 121 | /*breakpoints*/ {0, 2, 4, 11}}; |
| 122 | } |
| 123 | |
| 124 | // Test case 3: cache data in memory. |
| 125 | TestCase TestCase3() { |
no test coverage detected