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

Function rec

tests/host/ui/ipc_buffer_model_test.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using namespace oid::host;
33
34static BufferRecord
35rec(std::string_view name, std::byte fill, std::size_t n = 4) {
36 BufferRecord r;
37 r.variable_name = name;
38 r.display_name = name;
39 r.pixel_layout = "rgba";
40 r.width = 2;
41 r.height = 2;
42 r.channels = 1;
43 r.step = 2;
44 r.type = oid::BufferType::UnsignedByte;
45 r.bytes.assign(n, fill);
46 return r;
47}
48
49TEST(IpcBufferModel, UpsertAddsThenReplacesByName) {
50 IpcBufferModel m;

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected