Fix compilation warnings and prepare to be a dependency.

This commit is contained in:
2023-04-28 17:49:27 +06:00
parent 9e9aa23af7
commit 10301b40c8
8 changed files with 19 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
-module(config_test).
-compile([export_all]).
-compile([export_all,nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
-include("src/geef_records.hrl").

View File

@@ -1,5 +1,5 @@
-module(pkt_test).
-compile([export_all]).
-compile([export_all,nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
-include("src/geef_records.hrl").

View File

@@ -1,5 +1,5 @@
-module(ref_test).
-compile([export_all]).
-compile([export_all,nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
-include("src/geef_records.hrl").

View File

@@ -1,5 +1,5 @@
-module(repo_test).
-compile([export_all]).
-compile([export_all,nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
-include("src/geef_records.hrl").
@@ -117,7 +117,7 @@ commit_tree_test(Repo) ->
CommitId = geef_oid:parse("bf968373f95f8fed2a24f9d25ebf06521359c6bc"),
{ok, Commit} = geef_commit:lookup(Repo, CommitId),
Resp = geef_commit:tree(Commit),
[?_assertMatch({ok, _}, Resp)].
[?_assertMatch({ok, _, _}, Resp)].
rm_r(Path) ->
case filelib:is_dir(Path) of

View File

@@ -1,5 +1,5 @@
-module(revwalk_test).
-compile([export_all]).
-compile([export_all,nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
repo_test_() ->