summaryrefslogtreecommitdiff
path: root/inttest/cover/src/foo.erl
blob: 0e7df8fa6bf4fd21b1f43dbfb43194312e104ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-module(foo).

-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.

covered_function() ->
    "I am tested".

uncovered_function() ->
    "I am not tested".

-ifdef(EUNIT).

covered_function_test() ->
    ?assertEqual("I am tested", covered_function()).

-endif.