| 397 | }; |
| 398 | |
| 399 | TEST_F(CApiFunctionTest, OneOp_ZeroInputs_OneOutput) { |
| 400 | /* |
| 401 | * constant |
| 402 | * | |
| 403 | * v |
| 404 | */ |
| 405 | // Define |
| 406 | TF_Operation* c = ScalarConst(10, func_graph_, s_, "scalar10"); |
| 407 | Define(-1, {}, {}, {c}, {}); |
| 408 | |
| 409 | // Use, run, and verify |
| 410 | TF_Operation* func_op = Use({}); |
| 411 | Run({}, func_op, 10); |
| 412 | VerifyFDef({"scalar10_0"}, {}, {{"scalar10", DT_INT32}}, |
| 413 | {{"scalar10_0:output:0", "scalar10"}}, {}); |
| 414 | } |
| 415 | |
| 416 | TEST_F(CApiFunctionTest, OneOp_OneInput_OneOutput) { |
| 417 | /* |
nothing calls this directly
no test coverage detected