aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorrzezeski <[email protected]>2011-05-22 14:25:17 -0400
committerHenrik Nord <[email protected]>2011-05-24 09:15:43 +0200
commit7d8a1f8b944d6734d9419f184c441899a48c11a3 (patch)
treee1245e23bc1ccd1f5214531fff4da2e78d5318c2 /lib/common_test/src/ct_hooks.erl
parent5f7fa62cbfa18b88fc254fe362b11367177d2673 (diff)
downloadotp-7d8a1f8b944d6734d9419f184c441899a48c11a3.tar.gz
otp-7d8a1f8b944d6734d9419f184c441899a48c11a3.tar.bz2
otp-7d8a1f8b944d6734d9419f184c441899a48c11a3.zip
Add a proplist() type
Recently I was adding specs to an API and found that there is no canonical proplist() type defined.
Diffstat (limited to 'lib/common_test/src/ct_hooks.erl')
-rw-r--r--lib/common_test/src/ct_hooks.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/common_test/src/ct_hooks.erl b/lib/common_test/src/ct_hooks.erl
index 984e04b90f..ece592e320 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -31,8 +31,6 @@
-export([on_tc_skip/2]).
-export([on_tc_fail/2]).
--type proplist() :: [{atom(),term()}].
-
%% If you change this, remember to update ct_util:look -> stop clause as well.
-define(config_name, ct_hooks).
@@ -59,7 +57,7 @@ terminate(Hooks) ->
%% @doc Called as each test case is started. This includes all configuration
%% tests.
-spec init_tc(Mod :: atom(), Func :: atom(), Args :: list()) ->
- NewConfig :: proplist() |
+ NewConfig :: proplists:proplist() |
{skip, Reason :: term()} |
{auto_skip, Reason :: term()} |
{fail, Reason :: term()}.
@@ -92,7 +90,7 @@ init_tc(_Mod, TC, Config) ->
Args :: list(),
Result :: term(),
Resturn :: term()) ->
- NewConfig :: proplist() |
+ NewConfig :: proplists:proplist() |
{skip, Reason :: term()} |
{auto_skip, Reason :: term()} |
{fail, Reason :: term()} |