From 33e4c8a079aab17454ed9caad0cb6fd9b1fa92b1 Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Tue, 16 Apr 2019 11:52:47 +0200 Subject: Fix duplicate module naming in edoc test suite data --- .../bad/apps/bad_bar1/src/bad_bar1.app.src | 16 ++++++++++ .../bad/apps/bad_bar1/src/bad_bar1.erl | 9 ++++++ .../bad/apps/bad_bar1/src/bad_bar1_app.erl | 26 ++++++++++++++++ .../bad/apps/bad_bar1/src/bad_bar1_sup.erl | 35 ++++++++++++++++++++++ .../bad/apps/bad_bar2/src/bad_bar2.app.src | 16 ++++++++++ .../bad/apps/bad_bar2/src/bad_bar2.erl | 12 ++++++++ .../bad/apps/bad_bar2/src/bad_bar2_app.erl | 26 ++++++++++++++++ .../bad/apps/bad_bar2/src/bad_bar2_sup.erl | 35 ++++++++++++++++++++++ .../bad/apps/bad_foo/src/bad_foo.app.src | 18 +++++++++++ .../bad/apps/bad_foo/src/bad_foo.erl | 19 ++++++++++++ .../bad/apps/bad_foo/src/bad_foo_app.erl | 26 ++++++++++++++++ .../bad/apps/bad_foo/src/bad_foo_sup.erl | 35 ++++++++++++++++++++++ .../bad/apps/bar1/src/bar1.app.src | 16 ---------- .../bad/apps/bar1/src/bar1.erl | 9 ------ .../bad/apps/bar1/src/bar1_app.erl | 26 ---------------- .../bad/apps/bar1/src/bar1_sup.erl | 35 ---------------------- .../bad/apps/bar2/src/bar2.app.src | 16 ---------- .../bad/apps/bar2/src/bar2.erl | 12 -------- .../bad/apps/bar2/src/bar2_app.erl | 26 ---------------- .../bad/apps/bar2/src/bar2_sup.erl | 35 ---------------------- .../bad/apps/foo/src/foo.app.src | 17 ----------- .../rebar_edoc_SUITE_data/bad/apps/foo/src/foo.erl | 19 ------------ .../bad/apps/foo/src/foo_app.erl | 26 ---------------- .../bad/apps/foo/src/foo_sup.erl | 35 ---------------------- 24 files changed, 273 insertions(+), 272 deletions(-) create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.app.src create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_app.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_sup.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.app.src create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_app.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_sup.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.app.src create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_app.erl create mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_sup.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.app.src delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_app.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_sup.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.app.src delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_app.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_sup.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.app.src delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_app.erl delete mode 100644 test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_sup.erl (limited to 'test/rebar_edoc_SUITE_data') diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.app.src b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.app.src new file mode 100644 index 0000000..323eccc --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.app.src @@ -0,0 +1,16 @@ +{application, bad_bar1, + [{description, "An OTP application"}, + {vsn, "0.1.0"}, + {registered, []}, + {mod, { bad_bar1_app, []}}, + {applications, + [kernel, + stdlib + ]}, + {env,[]}, + {modules, []}, + + {maintainers, []}, + {licenses, []}, + {links, []} + ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.erl new file mode 100644 index 0000000..04bcca2 --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1.erl @@ -0,0 +1,9 @@ +-module(bad_bar1). +-export([bar1/0]). +-export_type([barer1/0]). + +-type barer1() :: string(). + +% @doc Bar1 bars the bar. +-spec bar1() -> barer1(). +bar1() -> "Barer1". diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_app.erl new file mode 100644 index 0000000..9a709ca --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_app.erl @@ -0,0 +1,26 @@ +%%%------------------------------------------------------------------- +%% @doc bar1 public API +%% @end +%%%------------------------------------------------------------------- + +-module(bad_bar1_app). + +-behaviour(application). + +%% Application callbacks +-export([start/2, stop/1]). + +%%==================================================================== +%% API +%%==================================================================== + +start(_StartType, _StartArgs) -> + bad_bar1_sup:start_link(). + +%%-------------------------------------------------------------------- +stop(_State) -> + ok. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_sup.erl new file mode 100644 index 0000000..8735f9c --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar1/src/bad_bar1_sup.erl @@ -0,0 +1,35 @@ +%%%------------------------------------------------------------------- +%% @doc bar1 top level supervisor. +%% @end +%%%------------------------------------------------------------------- + +-module(bad_bar1_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +%%==================================================================== +%% API functions +%%==================================================================== + +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%==================================================================== +%% Supervisor callbacks +%%==================================================================== + +%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} +init([]) -> + {ok, { {one_for_all, 0, 1}, []} }. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.app.src b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.app.src new file mode 100644 index 0000000..bb147ce --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.app.src @@ -0,0 +1,16 @@ +{application, bad_bar2, + [{description, "An OTP application"}, + {vsn, "0.1.0"}, + {registered, []}, + {mod, { bad_bar2_app, []}}, + {applications, + [kernel, + stdlib + ]}, + {env,[]}, + {modules, []}, + + {maintainers, []}, + {licenses, []}, + {links, []} + ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.erl new file mode 100644 index 0000000..be60adc --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2.erl @@ -0,0 +1,12 @@ +%% @doc one docline is fine +%% @doc a second docline causes a failure +%% @doc if not, then a & causes a bad ref error. +-module(bad_bar2). +-export([bar2/0]). +-export_type([barer2/0]). + +-type barer2() :: string(). + +% @doc Bar2 bars the bar2. +-spec bar2() -> barer2(). +bar2() -> "Barer2". diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_app.erl new file mode 100644 index 0000000..85cd4f5 --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_app.erl @@ -0,0 +1,26 @@ +%%%------------------------------------------------------------------- +%% @doc bar2 public API +%% @end +%%%------------------------------------------------------------------- + +-module(bad_bar2_app). + +-behaviour(application). + +%% Application callbacks +-export([start/2, stop/1]). + +%%==================================================================== +%% API +%%==================================================================== + +start(_StartType, _StartArgs) -> + bad_bar2_sup:start_link(). + +%%-------------------------------------------------------------------- +stop(_State) -> + ok. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_sup.erl new file mode 100644 index 0000000..7dbe0cb --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_bar2/src/bad_bar2_sup.erl @@ -0,0 +1,35 @@ +%%%------------------------------------------------------------------- +%% @doc bar2 top level supervisor. +%% @end +%%%------------------------------------------------------------------- + +-module(bad_bar2_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +%%==================================================================== +%% API functions +%%==================================================================== + +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%==================================================================== +%% Supervisor callbacks +%%==================================================================== + +%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} +init([]) -> + {ok, { {one_for_all, 0, 1}, []} }. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.app.src b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.app.src new file mode 100644 index 0000000..77cc873 --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.app.src @@ -0,0 +1,18 @@ +{application, bad_foo, + [{description, "An OTP application"}, + {vsn, "0.1.0"}, + {registered, []}, + {mod, { bad_foo_app, []}}, + {applications, + [kernel, + stdlib, + bad_bar1, + bad_bar2 + ]}, + {env,[]}, + {modules, []}, + + {maintainers, []}, + {licenses, []}, + {links, []} + ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.erl new file mode 100644 index 0000000..72632fb --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo.erl @@ -0,0 +1,19 @@ +-module(bad_foo). + +-export([foo/0, bar1/0, bar2/0]). + +-export_type([fooer/0]). + +-type fooer() :: string(). + +% @doc Foo function returns fooer. +-spec foo() -> fooer(). +foo() -> "fooer". + +% @doc Bar1 function returns barer1. +-spec bar1() -> bar1:barer1(). +bar1() -> bar1:bar1(). + +% @doc Bar2 functions returns barer2. +-spec bar2() -> bar2:barer2(). +bar2() -> bar2:bar2(). diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_app.erl new file mode 100644 index 0000000..21629f4 --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_app.erl @@ -0,0 +1,26 @@ +%%%------------------------------------------------------------------- +%% @doc foo public API +%% @end +%%%------------------------------------------------------------------- + +-module(bad_foo_app). + +-behaviour(application). + +%% Application callbacks +-export([start/2, stop/1]). + +%%==================================================================== +%% API +%%==================================================================== + +start(_StartType, _StartArgs) -> + bad_foo_sup:start_link(). + +%%-------------------------------------------------------------------- +stop(_State) -> + ok. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_sup.erl new file mode 100644 index 0000000..af499c0 --- /dev/null +++ b/test/rebar_edoc_SUITE_data/bad/apps/bad_foo/src/bad_foo_sup.erl @@ -0,0 +1,35 @@ +%%%------------------------------------------------------------------- +%% @doc foo top level supervisor. +%% @end +%%%------------------------------------------------------------------- + +-module(bad_foo_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +%%==================================================================== +%% API functions +%%==================================================================== + +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%==================================================================== +%% Supervisor callbacks +%%==================================================================== + +%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} +init([]) -> + {ok, { {one_for_all, 0, 1}, []} }. + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.app.src b/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.app.src deleted file mode 100644 index 6e7ec24..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.app.src +++ /dev/null @@ -1,16 +0,0 @@ -{application, bar1, - [{description, "An OTP application"}, - {vsn, "0.1.0"}, - {registered, []}, - {mod, { bar1_app, []}}, - {applications, - [kernel, - stdlib - ]}, - {env,[]}, - {modules, []}, - - {maintainers, []}, - {licenses, []}, - {links, []} - ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.erl deleted file mode 100644 index 2700aef..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1.erl +++ /dev/null @@ -1,9 +0,0 @@ --module(bar1). --export([bar1/0]). --export_type([barer1/0]). - --type barer1() :: string(). - -% @doc Bar1 bars the bar. --spec bar1() -> barer1(). -bar1() -> "Barer1". \ No newline at end of file diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_app.erl deleted file mode 100644 index 414ac30..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_app.erl +++ /dev/null @@ -1,26 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc bar1 public API -%% @end -%%%------------------------------------------------------------------- - --module(bar1_app). - --behaviour(application). - -%% Application callbacks --export([start/2, stop/1]). - -%%==================================================================== -%% API -%%==================================================================== - -start(_StartType, _StartArgs) -> - bar1_sup:start_link(). - -%%-------------------------------------------------------------------- -stop(_State) -> - ok. - -%%==================================================================== -%% Internal functions -%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_sup.erl deleted file mode 100644 index f9d6670..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar1/src/bar1_sup.erl +++ /dev/null @@ -1,35 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc bar1 top level supervisor. -%% @end -%%%------------------------------------------------------------------- - --module(bar1_sup). - --behaviour(supervisor). - -%% API --export([start_link/0]). - -%% Supervisor callbacks --export([init/1]). - --define(SERVER, ?MODULE). - -%%==================================================================== -%% API functions -%%==================================================================== - -start_link() -> - supervisor:start_link({local, ?SERVER}, ?MODULE, []). - -%%==================================================================== -%% Supervisor callbacks -%%==================================================================== - -%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} -init([]) -> - {ok, { {one_for_all, 0, 1}, []} }. - -%%==================================================================== -%% Internal functions -%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.app.src b/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.app.src deleted file mode 100644 index 58de8bc..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.app.src +++ /dev/null @@ -1,16 +0,0 @@ -{application, bar2, - [{description, "An OTP application"}, - {vsn, "0.1.0"}, - {registered, []}, - {mod, { bar2_app, []}}, - {applications, - [kernel, - stdlib - ]}, - {env,[]}, - {modules, []}, - - {maintainers, []}, - {licenses, []}, - {links, []} - ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.erl deleted file mode 100644 index 2afb745..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2.erl +++ /dev/null @@ -1,12 +0,0 @@ -%% @doc one docline is fine -%% @doc a second docline causes a failure -%% @doc if not, then a & causes a bad ref error. --module(bar2). --export([bar2/0]). --export_type([barer2/0]). - --type barer2() :: string(). - -% @doc Bar2 bars the bar2. --spec bar2() -> barer2(). -bar2() -> "Barer2". diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_app.erl deleted file mode 100644 index d0058a0..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_app.erl +++ /dev/null @@ -1,26 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc bar2 public API -%% @end -%%%------------------------------------------------------------------- - --module(bar2_app). - --behaviour(application). - -%% Application callbacks --export([start/2, stop/1]). - -%%==================================================================== -%% API -%%==================================================================== - -start(_StartType, _StartArgs) -> - bar2_sup:start_link(). - -%%-------------------------------------------------------------------- -stop(_State) -> - ok. - -%%==================================================================== -%% Internal functions -%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_sup.erl deleted file mode 100644 index 0bdaf4a..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/bar2/src/bar2_sup.erl +++ /dev/null @@ -1,35 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc bar2 top level supervisor. -%% @end -%%%------------------------------------------------------------------- - --module(bar2_sup). - --behaviour(supervisor). - -%% API --export([start_link/0]). - -%% Supervisor callbacks --export([init/1]). - --define(SERVER, ?MODULE). - -%%==================================================================== -%% API functions -%%==================================================================== - -start_link() -> - supervisor:start_link({local, ?SERVER}, ?MODULE, []). - -%%==================================================================== -%% Supervisor callbacks -%%==================================================================== - -%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} -init([]) -> - {ok, { {one_for_all, 0, 1}, []} }. - -%%==================================================================== -%% Internal functions -%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.app.src b/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.app.src deleted file mode 100644 index 9987fd5..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.app.src +++ /dev/null @@ -1,17 +0,0 @@ -{application, foo, - [{description, "An OTP application"}, - {vsn, "0.1.0"}, - {registered, []}, - {mod, { foo_app, []}}, - {applications, - [kernel, - stdlib, - bar1, bar2 - ]}, - {env,[]}, - {modules, []}, - - {maintainers, []}, - {licenses, []}, - {links, []} - ]}. diff --git a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.erl b/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.erl deleted file mode 100644 index 52e3d0a..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo.erl +++ /dev/null @@ -1,19 +0,0 @@ --module(foo). - --export([foo/0, bar1/0, bar2/0]). - --export_type([fooer/0]). - --type fooer() :: string(). - -% @doc Foo function returns fooer. --spec foo() -> fooer(). -foo() -> "fooer". - -% @doc Bar1 function returns barer1. --spec bar1() -> bar1:barer1(). -bar1() -> bar1:bar1(). - -% @doc Bar2 functions returns barer2. --spec bar2() -> bar2:barer2(). -bar2() -> bar2:bar2(). \ No newline at end of file diff --git a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_app.erl b/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_app.erl deleted file mode 100644 index d0158d7..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_app.erl +++ /dev/null @@ -1,26 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc foo public API -%% @end -%%%------------------------------------------------------------------- - --module(foo_app). - --behaviour(application). - -%% Application callbacks --export([start/2, stop/1]). - -%%==================================================================== -%% API -%%==================================================================== - -start(_StartType, _StartArgs) -> - foo_sup:start_link(). - -%%-------------------------------------------------------------------- -stop(_State) -> - ok. - -%%==================================================================== -%% Internal functions -%%==================================================================== diff --git a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_sup.erl b/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_sup.erl deleted file mode 100644 index 67e88b4..0000000 --- a/test/rebar_edoc_SUITE_data/bad/apps/foo/src/foo_sup.erl +++ /dev/null @@ -1,35 +0,0 @@ -%%%------------------------------------------------------------------- -%% @doc foo top level supervisor. -%% @end -%%%------------------------------------------------------------------- - --module(foo_sup). - --behaviour(supervisor). - -%% API --export([start_link/0]). - -%% Supervisor callbacks --export([init/1]). - --define(SERVER, ?MODULE). - -%%==================================================================== -%% API functions -%%==================================================================== - -start_link() -> - supervisor:start_link({local, ?SERVER}, ?MODULE, []). - -%%==================================================================== -%% Supervisor callbacks -%%==================================================================== - -%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} -init([]) -> - {ok, { {one_for_all, 0, 1}, []} }. - -%%==================================================================== -%% Internal functions -%%==================================================================== -- cgit v1.1