summaryrefslogtreecommitdiff
path: root/deps/meck/test/cover_test_module.dontcompile
diff options
context:
space:
mode:
Diffstat (limited to 'deps/meck/test/cover_test_module.dontcompile')
-rw-r--r--deps/meck/test/cover_test_module.dontcompile21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/meck/test/cover_test_module.dontcompile b/deps/meck/test/cover_test_module.dontcompile
new file mode 100644
index 00000000..06e88967
--- /dev/null
+++ b/deps/meck/test/cover_test_module.dontcompile
@@ -0,0 +1,21 @@
+%% -*- mode: erlang -*-
+
+%% This file needs not to have the extension .erl, since otherwise
+%% rebar will try to compile it, which won't work since it requires
+%% special compilation options. See meck_tests:cover_test_.
+
+-module(cover_test_module).
+-export([a/0, b/0, c/2]).
+
+%% a/0 is defined in include/cover_test.hrl. We don't put the full
+%% path here, since it should be provided as a compiler option.
+-include("cover_test.hrl").
+
+%% Also, make that this module was compiled with -DTEST.
+-ifdef(TEST).
+b() ->
+ b.
+-endif.
+
+c(A, B) ->
+ {A, B}.