| 50 | }; |
| 51 | |
| 52 | TEST_F(ShapeTest, ShapeToFromProto) { |
| 53 | for (const Shape& shape : {opaque_, token_, scalar_, matrix_, matrix2_, |
| 54 | tuple_, nested_tuple_, dynamic_matrix_}) { |
| 55 | Shape shape_copy(shape.ToProto()); |
| 56 | EXPECT_TRUE(ShapeUtil::Equal(shape, shape_copy)) |
| 57 | << shape << " != " << shape_copy; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | TEST_F(ShapeTest, ShapeToString) { |
| 62 | EXPECT_EQ("opaque[]", opaque_.ToString()); |
nothing calls this directly
no test coverage detected