MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / main

Function main

tests/cpmfs.cc:316–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315#endif
316int main(void)
317{
318 try
319 {
320 const std::string text = R"M(
321 drive {
322 drive_type: DRIVETYPE_80TRACK
323 }
324
325 layout {
326 format_type: FORMATTYPE_80TRACK
327 tracks: 20
328 sides: 1
329 layoutdata {
330 sector_size: 256
331 physical {
332 start_sector: 0
333 count: 8
334 }
335 }
336 }
337
338 filesystem {
339 type: CPMFS
340 cpmfs {
341 block_size: 2048
342 dir_entries: 64
343 }
344 }
345 )M";
346 google::protobuf::TextFormat::MergeFromString(
347 text, globalConfig().overrides());
348
349 testPartialExtent();
350 testLogicalExtents();
351#if 0
352 testBitmap();
353 testPutGet();
354 testPutBigFile();
355 testDelete();
356 testMove();
357 testPutMetadata();
358#endif
359 }
360 catch (const ErrorException& e)
361 {
362 std::cerr << e.message << '\n';
363 exit(1);
364 }
365
366 return 0;
367}

Callers

nothing calls this directly

Calls 9

testPartialExtentFunction · 0.85
testLogicalExtentsFunction · 0.85
testBitmapFunction · 0.85
testPutGetFunction · 0.85
testPutBigFileFunction · 0.85
testDeleteFunction · 0.85
testMoveFunction · 0.85
testPutMetadataFunction · 0.85
overridesMethod · 0.80

Tested by

no test coverage detected