LCOV - code coverage report
Current view: top level - src/util - getuniquepath.cpp (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 5 5 100.0 %
Date: 2021-06-29 14:35:33 Functions: 1 1 100.0 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 0 0 -

           Branch data     Line data    Source code
#       1                 :            : #include <random.h>
#       2                 :            : #include <fs.h>
#       3                 :            : #include <util/strencodings.h>
#       4                 :            : 
#       5                 :            : fs::path GetUniquePath(const fs::path& base)
#       6                 :       1337 : {
#       7                 :       1337 :     FastRandomContext rnd;
#       8                 :       1337 :     fs::path tmpFile = base / HexStr(rnd.randbytes(8));
#       9                 :       1337 :     return tmpFile;
#      10                 :       1337 : }

Generated by: LCOV version 1.14