diff options
author | Tino Breddin <t@tolbrino.com> | 2019-04-16 11:52:47 +0200 |
---|---|---|
committer | Tino Breddin <t@tolbrino.com> | 2019-04-16 21:22:12 +0200 |
commit | 33e4c8a079aab17454ed9caad0cb6fd9b1fa92b1 (patch) | |
tree | 09357ccf00165e4cda5dc875030d34c58912c8c4 /test/rebar_edoc_SUITE_data/bad/apps/bad_foo | |
parent | 14928247cda69d953e673ed6b5feb6ff679a2dfc (diff) |
Fix duplicate module naming in edoc test suite data
Diffstat (limited to 'test/rebar_edoc_SUITE_data/bad/apps/bad_foo')
4 files changed, 98 insertions, 0 deletions
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 +%%==================================================================== |