| 101 | } |
| 102 | |
| 103 | TEST(TsOpGenTest, TestImports) { |
| 104 | string ts_file_text; |
| 105 | GenerateTsOpFileText("", "", &ts_file_text); |
| 106 | |
| 107 | const string expected = R"( |
| 108 | import * as tfc from '@tensorflow/tfjs-core'; |
| 109 | import {createTensorsTypeOpAttr, nodeBackend} from './op_utils'; |
| 110 | )"; |
| 111 | ExpectContainsStr(ts_file_text, expected); |
| 112 | } |
| 113 | |
| 114 | TEST(TsOpGenTest, InputSingleAndList) { |
| 115 | const string api_def = R"pb( |
nothing calls this directly
no test coverage detected