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

Function makeData

valdi/test/runtime/EncryptedDiskCache_tests.cpp:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22static BytesView makeData(std::string_view str) {
23 return makeShared<ByteBuffer>(str)->toBytesView();
24}
25
26TEST(EncryptedDiskCache, generatesKeyWhenKeychainEmpty) {
27 auto innerDiskCache = makeShared<InMemoryDiskCache>();

Callers 1

TESTFunction · 0.85

Calls 1

toBytesViewMethod · 0.45

Tested by

no test coverage detected