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

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

Callers 1

TESTFunction · 0.85

Calls 2

setMethod · 0.65
toBytesViewMethod · 0.45

Tested by

no test coverage detected