| 78 | namespace { |
| 79 | |
| 80 | TEST(TensorTest, Default) { |
| 81 | Tensor t; |
| 82 | EXPECT_EQ(t.dtype(), DT_FLOAT); |
| 83 | EXPECT_EQ(t.dims(), 1); |
| 84 | EXPECT_EQ(t.NumElements(), 0); |
| 85 | } |
| 86 | |
| 87 | TEST(TensorTest, DataType_Traits) { |
| 88 | EXPECT_TRUE(std::is_trivial<float>::value); |
nothing calls this directly
no test coverage detected