mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Fix whitespace errors in unit tests
This commit is contained in:
parent
fe75f8efce
commit
5f2930b701
2 changed files with 19 additions and 17 deletions
|
@ -134,8 +134,9 @@ basic_setup_test_() ->
|
||||||
%% Test the setup function
|
%% Test the setup function
|
||||||
assert_dirs_in("Basic Project",
|
assert_dirs_in("Basic Project",
|
||||||
["src", "ebin", "test"]) ++
|
["src", "ebin", "test"]) ++
|
||||||
assert_files_in("Basic Project",
|
assert_files_in("Basic Project",
|
||||||
["test/myapp_mymod_tests.erl", "src/myapp_mymod.erl"])}.
|
["test/myapp_mymod_tests.erl",
|
||||||
|
"src/myapp_mymod.erl"])}.
|
||||||
|
|
||||||
%% ====================================================================
|
%% ====================================================================
|
||||||
%% Setup and Teardown
|
%% Setup and Teardown
|
||||||
|
@ -227,7 +228,7 @@ rebar() ->
|
||||||
|
|
||||||
rebar(Args) when is_list(Args) ->
|
rebar(Args) when is_list(Args) ->
|
||||||
Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args),
|
Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args),
|
||||||
%?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),
|
%% ?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),
|
||||||
Out.
|
Out.
|
||||||
|
|
||||||
assert_dirs_in(Name, [Dir|T]) ->
|
assert_dirs_in(Name, [Dir|T]) ->
|
||||||
|
@ -241,8 +242,8 @@ assert_files_in(Name, [File|T]) ->
|
||||||
assert_files_in(_, []) -> [].
|
assert_files_in(_, []) -> [].
|
||||||
|
|
||||||
assert_files_not_in(Name, [File|T]) ->
|
assert_files_not_in(Name, [File|T]) ->
|
||||||
[{Name ++ " does not have file: " ++ File, ?_assertNot(filelib:is_regular(File))} |
|
[{Name ++ " does not have file: " ++ File,
|
||||||
assert_files_not_in(Name, T)];
|
?_assertNot(filelib:is_regular(File))} | assert_files_not_in(Name, T)];
|
||||||
assert_files_not_in(_, []) -> [].
|
assert_files_not_in(_, []) -> [].
|
||||||
|
|
||||||
assert_full_coverage(Mod) ->
|
assert_full_coverage(Mod) ->
|
||||||
|
|
|
@ -225,7 +225,8 @@ mv_file_test_() ->
|
||||||
end,
|
end,
|
||||||
fun teardown/1,
|
fun teardown/1,
|
||||||
[?_assert(filelib:is_regular(filename:join([?TMP_DIR,"dest","file1"]))),
|
[?_assert(filelib:is_regular(filename:join([?TMP_DIR,"dest","file1"]))),
|
||||||
?_assertNot(filelib:is_regular(filename:join([?TMP_DIR,"source","file1"])))]}.
|
?_assertNot(filelib:is_regular(
|
||||||
|
filename:join([?TMP_DIR,"source","file1"])))]}.
|
||||||
|
|
||||||
%% ====================================================================
|
%% ====================================================================
|
||||||
%% Utilities
|
%% Utilities
|
||||||
|
|
Loading…
Reference in a new issue