./ct_report/coverage/mongoose_graphql_enum.COVER.html

1 -module(mongoose_graphql_enum).
2
3 -export([input/2, output/2]).
4
5 -ignore_xref([input/2, output/2]).
6
7 input(<<"PresenceShow">>, Show) ->
8 3 {ok, list_to_binary(string:to_lower(binary_to_list(Show)))};
9 input(<<"PresenceType">>, Type) ->
10 4 {ok, list_to_binary(string:to_lower(binary_to_list(Type)))};
11
:-(
input(<<"AuthStatus">>, <<"AUTHORIZED">>) -> {ok, 'AUTHORIZED'};
12
:-(
input(<<"AuthStatus">>, <<"UNAUTHORIZED">>) -> {ok, 'UNAUTHORIZED'};
13
:-(
input(<<"Affiliation">>, <<"OWNER">>) -> {ok, owner};
14
:-(
input(<<"Affiliation">>, <<"MEMBER">>) -> {ok, member};
15
:-(
input(<<"Affiliation">>, <<"NONE">>) -> {ok, none};
16 2 input(<<"BlockingAction">>, <<"ALLOW">>) -> {ok, allow};
17 3 input(<<"BlockingAction">>, <<"DENY">>) -> {ok, deny};
18 4 input(<<"BlockedEntityType">>, <<"USER">>) -> {ok, user};
19 1 input(<<"BlockedEntityType">>, <<"ROOM">>) -> {ok, room};
20 5 input(<<"SubAction">>, <<"INVITE">>) -> {ok, invite};
21 2 input(<<"SubAction">>, <<"ACCEPT">>) -> {ok, accept};
22 2 input(<<"SubAction">>, <<"DECLINE">>) -> {ok, decline};
23 2 input(<<"SubAction">>, <<"CANCEL">>) -> {ok, cancel};
24 2 input(<<"MutualSubAction">>, <<"CONNECT">>) -> {ok, connect};
25 2 input(<<"MutualSubAction">>, <<"DISCONNECT">>) -> {ok, disconnect};
26
:-(
input(<<"MUCRoomRole">>, <<"NONE">>) -> {ok, none};
27
:-(
input(<<"MUCRoomRole">>, <<"VISITOR">>) -> {ok, visitor};
28
:-(
input(<<"MUCRoomRole">>, <<"PARTICIPANT">>) -> {ok, participant};
29
:-(
input(<<"MUCRoomRole">>, <<"MODERATOR">>) -> {ok, moderator}.
30
31 output(<<"PresenceShow">>, Show) ->
32
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Show)))};
33 output(<<"PresenceType">>, Type) ->
34
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Type)))};
35 output(<<"AuthStatus">>, Status) ->
36 5 {ok, atom_to_binary(Status, utf8)};
37 output(<<"Affiliation">>, Aff) ->
38 12 {ok, list_to_binary(string:to_upper(atom_to_list(Aff)))};
39 output(<<"BlockingAction">>, Action) ->
40 3 {ok, list_to_binary(string:to_upper(atom_to_list(Action)))};
41 output(<<"BlockedEntityType">>, What) ->
42 3 {ok, list_to_binary(string:to_upper(atom_to_list(What)))};
43 output(<<"ContactSub">>, Type) when Type =:= both;
44 Type =:= from;
45 Type =:= to;
46 Type =:= none ->
47 4 {ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
48 output(<<"ContactAsk">>, Type) when Type =:= subscrube;
49 Type =:= unsubscribe;
50 Type =:= in;
51 Type =:= out;
52 Type =:= both;
53 Type =:= none ->
54 4 {ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
55 output(<<"MUCRoomRole">>, Role) ->
56 6 {ok, list_to_binary(string:to_upper(atom_to_list(Role)))}.
Line Hits Source