./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(<<"Affiliation">>, <<"OWNER">>) -> {ok, owner};
12
:-(
input(<<"Affiliation">>, <<"MEMBER">>) -> {ok, member};
13
:-(
input(<<"Affiliation">>, <<"NONE">>) -> {ok, none};
14 29 input(<<"AddressTags">>, Name) -> {ok, Name};
15 2 input(<<"BlockingAction">>, <<"ALLOW">>) -> {ok, allow};
16 3 input(<<"BlockingAction">>, <<"DENY">>) -> {ok, deny};
17 4 input(<<"BlockedEntityType">>, <<"USER">>) -> {ok, user};
18 1 input(<<"BlockedEntityType">>, <<"ROOM">>) -> {ok, room};
19 9 input(<<"EmailTags">>, Name) -> {ok, Name};
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 5 input(<<"MUCRole">>, <<"VISITOR">>) -> {ok, visitor};
27 4 input(<<"MUCRole">>, <<"PARTICIPANT">>) -> {ok, participant};
28 4 input(<<"MUCRole">>, <<"MODERATOR">>) -> {ok, moderator};
29 5 input(<<"MUCAffiliation">>, <<"NONE">>) -> {ok, none};
30 10 input(<<"MUCAffiliation">>, <<"MEMBER">>) -> {ok, member};
31 4 input(<<"MUCAffiliation">>, <<"OUTCAST">>) -> {ok, outcast};
32 6 input(<<"MUCAffiliation">>, <<"ADMIN">>) -> {ok, admin};
33 6 input(<<"MUCAffiliation">>, <<"OWNER">>) -> {ok, owner};
34 9 input(<<"PrivacyClassificationTags">>, Name) -> {ok, Name};
35 12 input(<<"TelephoneTags">>, Name) -> {ok, Name};
36
:-(
input(<<"MetricType">>, Name) -> {ok, Name}.
37
38 output(<<"PresenceShow">>, Show) ->
39
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Show)))};
40 output(<<"PresenceType">>, Type) ->
41
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Type)))};
42 output(<<"AuthStatus">>, Status) ->
43 5 {ok, atom_to_binary(Status, utf8)};
44 output(<<"AuthType">>, Type) ->
45 1 {ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
46 output(<<"Affiliation">>, Aff) ->
47 12 {ok, list_to_binary(string:to_upper(atom_to_list(Aff)))};
48 output(<<"BlockingAction">>, Action) ->
49 3 {ok, list_to_binary(string:to_upper(atom_to_list(Action)))};
50 output(<<"BlockedEntityType">>, What) ->
51 3 {ok, list_to_binary(string:to_upper(atom_to_list(What)))};
52 output(<<"ContactSub">>, Type) when Type =:= both;
53 Type =:= from;
54 Type =:= to;
55 Type =:= none ->
56 4 {ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
57 output(<<"ContactAsk">>, Type) when Type =:= subscrube;
58 Type =:= unsubscribe;
59 Type =:= in;
60 Type =:= out;
61 Type =:= both;
62 Type =:= none ->
63 4 {ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
64 output(<<"MUCRole">>, Role) ->
65 6 {ok, list_to_binary(string:to_upper(atom_to_list(Role)))};
66 output(<<"MUCAffiliation">>, Aff) ->
67 8 {ok, list_to_binary(string:to_upper(atom_to_list(Aff)))};
68 42 output(<<"AddressTags">>, Name) -> {ok, Name};
69 18 output(<<"EmailTags">>, Name) -> {ok, Name};
70 12 output(<<"PrivacyClassificationTags">>, Name) -> {ok, Name};
71 16 output(<<"TelephoneTags">>, Name) -> {ok, Name};
72 1382 output(<<"MetricType">>, Type) -> {ok, Type}.
Line Hits Source