Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eproxus committed Jan 12, 2012
1 parent d8b4267 commit 890fa97
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/meck_tests.erl
Expand Up @@ -166,10 +166,10 @@ stacktrace_(Mod) ->
throw(failed)
catch
error:test_error ->
?assert(lists:any(fun({M, test, []}) when M == Mod -> true;
({M, test, [],[]}) when M == Mod -> true;
(_) -> false end,
erlang:get_stacktrace()))
?assert(lists:any(fun({M, test, []}) when M == Mod -> true;
({M, test, [],[]}) when M == Mod -> true;
(_) -> false
end, erlang:get_stacktrace()))
end.

stacktrace_function_clause_(Mod) ->
Expand All @@ -180,10 +180,10 @@ stacktrace_function_clause_(Mod) ->
catch
error:function_clause ->
Stacktrace = erlang:get_stacktrace(),
?assert(lists:any(fun({M, test, [error]}) when M == Mod -> true;
({M, test, [error], []}) when M == Mod -> true;
(_) -> false end,
Stacktrace))
?assert(lists:any(fun({M, test, [error]}) when M == Mod -> true;
({M, test, [error], []}) when M == Mod -> true;
(_) -> false
end, Stacktrace))
end.


Expand Down Expand Up @@ -256,7 +256,7 @@ history_error_args_(Mod) ->
meck:history(Mod)),
[{_Pid, _MFA, error, test_error, Stacktrace}] = History,
?assert(lists:any(fun({_M, _F, [fake_args]}) -> true;
({_M, _F, [fake_args], [{file,_},{line,_}]}) -> true;
({_M, _F, [fake_args], [{file,_},{line,_}]}) -> true;
(_) -> false end, Stacktrace)).

history_meck_throw_(Mod) ->
Expand Down

0 comments on commit 890fa97

Please sign in to comment.