./ct_report/coverage/mongoose_graphql_admin_query.COVER.html

1 -module(mongoose_graphql_admin_query).
2 -behaviour(mongoose_graphql).
3
4 -export([execute/4]).
5
6 -ignore_xref([execute/4]).
7
8 -include("../mongoose_graphql_types.hrl").
9
10 execute(_Ctx, _Obj, <<"account">>, _Args) ->
11 56 {ok, account};
12 execute(_Ctx, _Obj, <<"checkAuth">>, _Args) ->
13 7 {ok, admin};
14 execute(_Ctx, _Obj, <<"domain">>, _Args) ->
15 13 {ok, admin};
16 execute(_Ctx, _Obj, <<"gdpr">>, _Args) ->
17 61 {ok, gdpr};
18 execute(_Ctx, _Obj, <<"last">>, _Args) ->
19 44 {ok, last};
20 execute(_Ctx, _Obj, <<"metric">>, _Args) ->
21 62 {ok, metric};
22 execute(_Ctx, _Obj, <<"mnesia">>, _Args) ->
23 4 {ok, mnesia};
24 execute(_Ctx, _Obj, <<"cets">>, _Args) ->
25
:-(
{ok, cets};
26 execute(_Ctx, _Obj, <<"muc">>, _Args) ->
27 61 {ok, muc};
28 execute(_Ctx, _Obj, <<"muc_light">>, _Args) ->
29 70 {ok, muc_light};
30 execute(_Ctx, _Obj, <<"private">>, _Args) ->
31 10 {ok, private};
32 execute(_Ctx, _Obj, <<"roster">>, _Args) ->
33 16 {ok, roster};
34 execute(_Ctx, _Obj, <<"server">>, _Args) ->
35 24 {ok, server};
36 execute(_Ctx, _Obj, <<"session">>, _Args) ->
37 65 {ok, session};
38 execute(_Ctx, _Obj, <<"stanza">>, _Args) ->
39 30 {ok, #{}};
40 execute(_Ctx, _Obj, <<"stat">>, _Args) ->
41 18 {ok, stats};
42 execute(_Ctx, _Obj, <<"vcard">>, _Args) ->
43 18 {ok, vcard}.
Line Hits Source