./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, <<"checkAuth">>, _Args) ->
11 3 {ok, admin};
12 execute(_Ctx, _Obj, <<"account">>, _Args) ->
13 14 {ok, account};
14 execute(_Ctx, _Obj, <<"domains">>, _Args) ->
15
:-(
{ok, admin};
16 execute(_Ctx, _Obj, <<"last">>, _Args) ->
17 11 {ok, last};
18 execute(_Ctx, _Obj, <<"muc">>, _Args) ->
19 12 {ok, muc};
20 execute(_Ctx, _Obj, <<"muc_light">>, _Args) ->
21 13 {ok, muc_light};
22 execute(_Ctx, _Obj, <<"private">>, _Args) ->
23 3 {ok, private};
24 execute(_Ctx, _Obj, <<"roster">>, _Args) ->
25 6 {ok, roster};
26 execute(_Ctx, _Obj, <<"session">>, _Args) ->
27 14 {ok, session};
28 execute(_Ctx, _Obj, <<"stanza">>, _Args) ->
29 8 {ok, #{}};
30 execute(_Ctx, _Obj, <<"vcard">>, _Args) ->
31 5 {ok, vcard};
32 execute(_Ctx, _Obj, <<"metric">>, _Args) ->
33 12 {ok, metric}.
Line Hits Source