MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / TEST

Function TEST

tests/host/ui/buffer_model_test.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using oid::host::type_label;
35
36TEST(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,

Callers

nothing calls this directly

Calls 7

make_default_mock_modelFunction · 0.85
type_sizeFunction · 0.85
type_labelFunction · 0.85
eraseMethod · 0.80
sizeMethod · 0.45
revision_ofMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected