| 34 | using oid::host::type_label; |
| 35 | |
| 36 | TEST(MockBufferModel, HoldsDeterministicBuffers) { |
| 37 | MockBufferModel m = make_default_mock_model(); |
| 38 | ASSERT_GE(m.size(), 2u); |
| 39 | |
| 40 | const auto& r = m.at(0); |
| 41 | EXPECT_EQ(r.width * r.height * r.channels, |
| 42 | static_cast<int>(r.bytes.size())); |
| 43 | EXPECT_FALSE(r.variable_name.empty()); |
| 44 | } |
| 45 | |
| 46 | // step is "pixels per row" (see Buffer::configure / GL_UNPACK_ROW_LENGTH), |
| 47 | // NOT elements-per-row. For these contiguous buffers step must equal width, |
nothing calls this directly
no test coverage detected