MCPcopy Create free account
hub / github.com/attermann/microReticulum / testCacheWrite

Function testCacheWrite

test/test_filesystem/test_filesystem.cpp:252–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void testCacheWrite() {
253
254 // CBA Attempt to reproduce failure to open file for write that is leaking mmeory
255 if (!RNS::Utilities::OS::directory_exists("./cache")) {
256 RNS::Utilities::OS::create_directory("./cache");
257 }
258 writeFile("./cache/test");
259 writeFile("./cache/45c50662af11f1b26889efaab547942b45c50662af11f1b26889efaab547942b");
260 writeFile("./cache/40fe4ab8105b591cca1ef159d476a7b440fe4ab8105b591cca1ef159d476a7b4");
261 writeFile("./cache/c755609f4d0ab75b5119905a032eeb33c755609f4d0ab75b5119905a032eeb33");
262 writeFile("./cache/426f66f9aadf866933358b71295f59d0426f66f9aadf866933358b71295f59d0");
263
264}
265
266
267void setUp(void) {

Callers

nothing calls this directly

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected