Test coverage - missing 1%

This commit is contained in:
martinsumner 2017-02-26 20:52:40 +00:00
parent fb54d29873
commit 41e5686a66
2 changed files with 9 additions and 0 deletions

View file

@ -1110,6 +1110,13 @@ add_missing_hash({K, {SQN, ST, MD}}) ->
{K, {SQN, ST, leveled_codec:magic_hash(K), MD}}.
clean_dir_test() ->
% Pointless gesture to test coverage
RootPath = "../test/ledger",
?assertMatch(ok, file:write_file(RootPath ++ "/test.bob", "hello")),
?assertMatch(ok, clean_subdir(RootPath ++ "/test.bob")),
?assertMatch(ok, file:delete(RootPath ++ "/test.bob")).
simple_server_test() ->
RootPath = "../test/ledger",
clean_testdir(RootPath),