Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing GD small suite #1770

Merged
merged 1 commit into from
Mar 14, 2018
Merged

Add missing GD small suite #1770

merged 1 commit into from
Mar 14, 2018

Conversation

fenek
Copy link
Member

@fenek fenek commented Mar 13, 2018

I forgot to add this suite to PR #1763 :(

@codecov-io
Copy link

Codecov Report

Merging #1770 into master will increase coverage by 4.76%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1770      +/-   ##
==========================================
+ Coverage   69.61%   74.38%   +4.76%     
==========================================
  Files         289      289              
  Lines       26860    26860              
==========================================
+ Hits        18698    19979    +1281     
+ Misses       8162     6881    -1281
Impacted Files Coverage Δ
..._distrib/mod_global_distrib_outgoing_conns_sup.erl 73.91% <0%> (-8.7%) ⬇️
...c/global_distrib/mod_global_distrib_server_mgr.erl 78.87% <0%> (-1.41%) ⬇️
src/mod_mam.erl 89.01% <0%> (-0.38%) ⬇️
src/mod_muc.erl 68.97% <0%> (-0.28%) ⬇️
src/rdbms/mongoose_rdbms.erl 71.22% <0%> (ø) ⬆️
src/mod_pubsub.erl 66.01% <0%> (+0.06%) ⬆️
src/p1_fsm_old.erl 37.35% <0%> (+0.75%) ⬆️
src/ejabberd_config.erl 63.99% <0%> (+0.86%) ⬆️
src/global_distrib/mod_global_distrib.erl 90.54% <0%> (+1.35%) ⬆️
src/gen_pubsub_node.erl 12.5% <0%> (+3.12%) ⬆️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a87544e...ab13d47. Read the comment docs.

@@ -0,0 +1,175 @@
%%==============================================================================
%% Copyright 2014 Erlang Solutions Ltd.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

year :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahaha :D Copy & paste issues. :D Thanks.

%%--------------------------------------------------------------------


%% missing_struct_ tests verify the behaviour of packet_to_component handler,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good :)

%% Suite configuration
%%--------------------------------------------------------------------

all() ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can list cases in all() directly.
I don't see any point of having groups for small suites.
(the only point is that we use groups everywhere).

From = jid:make(<<"">>, <<"from_service.", (global_host())/binary>>, <<"">>),
{Acc, To} = fake_acc_to_component(From),
% The handler must not crash and return unchanged Acc
Acc = mod_global_distrib_mapping:packet_to_component(Acc, From, To).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am usually using ?assert_equal.
Recently started to use
?assert_equal_extra(A, B, #{comment => "Do you have something to say?", some_var => X, some_other_var => Y})
which contains enough info to figure out what is wrong, without reading logs or suite code in 50% of cases.

Copy link
Contributor

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@arcusfelis arcusfelis merged commit b2dcd62 into master Mar 14, 2018
@fenek fenek added this to the 3.0.0 milestone Mar 19, 2018
@fenek fenek deleted the add-missing-gd-small-test branch August 22, 2018 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants