MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeBytes

Function makeBytes

valdi/test/runtime/PersistentStore_tests.cpp:458–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458static BytesView makeBytes(std::initializer_list<Byte> data) {
459 auto output = makeShared<ByteBuffer>();
460 output->set(data);
461
462 return output->toBytesView();
463}
464
465// Sanity checks since the updateSequence is used in the tests above
466TEST(InMemoryKeychain, increaseSequenceWhenUpdated) {

Callers 1

TESTFunction · 0.85

Calls 2

setMethod · 0.65
toBytesViewMethod · 0.45

Tested by

no test coverage detected