diff options
author | Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com> | 2020-10-09 23:18:56 +0100 |
---|---|---|
committer | Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com> | 2020-10-14 23:20:17 +0100 |
commit | 5a7b1ee2026b9b6f0013280d2e749c43f1660ed4 (patch) | |
tree | 6fa451bfd9f2a05d2723ae751571f01dab0b448b /lib/common_test/src/ct_suite.erl | |
parent | 5a21b49f5e0a02baed2c586383b5e14ba56fc510 (diff) | |
download | erlang-5a7b1ee2026b9b6f0013280d2e749c43f1660ed4.tar.gz |
Format -callback elements as per other behaviour-defining modules in the project
Diffstat (limited to 'lib/common_test/src/ct_suite.erl')
-rw-r--r-- | lib/common_test/src/ct_suite.erl | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/lib/common_test/src/ct_suite.erl b/lib/common_test/src/ct_suite.erl index b1eb05f3bc..103b8f4738 100644 --- a/lib/common_test/src/ct_suite.erl +++ b/lib/common_test/src/ct_suite.erl @@ -77,33 +77,45 @@ {CTHModule :: atom(), CTHInitArgs :: term(), CTHPriority :: term()} ]. --callback all() -> [ct_testname() | ct_groupref() | ct_testcase_ref()] - | {skip, Reason::term()}. +-callback all() -> + [ct_testname() | ct_groupref() | ct_testcase_ref()] | + {skip, Reason::term()}. --callback groups() -> [ct_groupdef()]. +-callback groups() -> + [ct_groupdef()]. --callback suite() -> [ct_group_info()]. +-callback suite() -> + [ct_group_info()]. -callback init_per_suite(ct_config()) -> - NewConfig::ct_config() | {skip,Reason::term()} - | {skip_and_save,Reason::term(),ct_config()}. + NewConfig::ct_config() | + {skip,Reason::term()} | + {skip_and_save,Reason::term(),ct_config()}. -callback end_per_suite(ct_config()) -> - term() | {save_config,ct_config()}. + term() | + {save_config,ct_config()}. --callback group(ct_groupname()) -> [ct_group_info()]. +-callback group(ct_groupname()) -> + [ct_group_info()]. -callback init_per_group(ct_groupname(), ct_config()) -> - NewConfig::ct_config() | {skip,Reason::term()}. + NewConfig::ct_config() | + {skip,Reason::term()}. -callback end_per_group(ct_groupname(), ct_config()) -> - term() | {return_group_result, ct_status()}. + term() | + {return_group_result, ct_status()}. -callback init_per_testcase(ct_testname(), ct_config()) -> - NewConfig::ct_config() | {fail,Reason::term()} | {skip,Reason::term()}. + NewConfig::ct_config() | + {fail,Reason::term()} | + {skip,Reason::term()}. -callback end_per_testcase(ct_testname(), ct_config()) -> - term() | {fail,Reason::term()} | {save_config,ct_config()}. + term() | + {fail,Reason::term()} | + {save_config,ct_config()}. %% only all/0 is mandatory -optional_callbacks([groups/0, |