./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
:-(
{ok, list_to_binary(string:to_lower(binary_to_list(Show)))};
9 input(<<"PresenceType">>, Type) ->
10
:-(
{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
:-(
input(<<"AddressTags">>, Name) -> {ok, Name};
15
:-(
input(<<"BlockingAction">>, <<"ALLOW">>) -> {ok, allow};
16
:-(
input(<<"BlockingAction">>, <<"DENY">>) -> {ok, deny};
17
:-(
input(<<"BlockedEntityType">>, <<"USER">>) -> {ok, user};
18
:-(
input(<<"BlockedEntityType">>, <<"ROOM">>) -> {ok, room};
19
:-(
input(<<"EmailTags">>, Name) -> {ok, Name};
20
:-(
input(<<"SubAction">>, <<"INVITE">>) -> {ok, invite};
21
:-(
input(<<"SubAction">>, <<"ACCEPT">>) -> {ok, accept};
22
:-(
input(<<"SubAction">>, <<"DECLINE">>) -> {ok, decline};
23
:-(
input(<<"SubAction">>, <<"CANCEL">>) -> {ok, cancel};
24
:-(
input(<<"MutualSubAction">>, <<"CONNECT">>) -> {ok, connect};
25
:-(
input(<<"MutualSubAction">>, <<"DISCONNECT">>) -> {ok, disconnect};
26
:-(
input(<<"MUCRole">>, <<"VISITOR">>) -> {ok, visitor};
27
:-(
input(<<"MUCRole">>, <<"PARTICIPANT">>) -> {ok, participant};
28
:-(
input(<<"MUCRole">>, <<"MODERATOR">>) -> {ok, moderator};
29
:-(
input(<<"MUCAffiliation">>, <<"NONE">>) -> {ok, none};
30
:-(
input(<<"MUCAffiliation">>, <<"MEMBER">>) -> {ok, member};
31
:-(
input(<<"MUCAffiliation">>, <<"OUTCAST">>) -> {ok, outcast};
32
:-(
input(<<"MUCAffiliation">>, <<"ADMIN">>) -> {ok, admin};
33
:-(
input(<<"MUCAffiliation">>, <<"OWNER">>) -> {ok, owner};
34
:-(
input(<<"PrivacyClassificationTags">>, Name) -> {ok, Name};
35
:-(
input(<<"TelephoneTags">>, Name) -> {ok, Name};
36
:-(
input(<<"LogLevel">>, Name) -> {ok, list_to_atom(string:to_lower(binary_to_list(Name)))};
37
:-(
input(<<"MetricType">>, Name) -> {ok, Name}.
38
39 output(<<"DomainStatus">>, Type) ->
40
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
41 output(<<"PresenceShow">>, Show) ->
42
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Show)))};
43 output(<<"PresenceType">>, Type) ->
44
:-(
{ok, list_to_binary(string:to_upper(binary_to_list(Type)))};
45 output(<<"AuthStatus">>, Status) ->
46
:-(
{ok, atom_to_binary(Status, utf8)};
47 output(<<"AuthType">>, Type) ->
48
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
49 output(<<"Affiliation">>, Aff) ->
50
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Aff)))};
51 output(<<"BlockingAction">>, Action) ->
52
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Action)))};
53 output(<<"BlockedEntityType">>, What) ->
54
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(What)))};
55 output(<<"ContactSub">>, Type) when Type =:= both;
56 Type =:= from;
57 Type =:= to;
58 Type =:= none ->
59
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
60 output(<<"ContactAsk">>, Type) when Type =:= subscrube;
61 Type =:= unsubscribe;
62 Type =:= in;
63 Type =:= out;
64 Type =:= both;
65 Type =:= none ->
66
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Type)))};
67 output(<<"MUCRole">>, Role) ->
68
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Role)))};
69 output(<<"MUCAffiliation">>, Aff) ->
70
:-(
{ok, list_to_binary(string:to_upper(atom_to_list(Aff)))};
71
:-(
output(<<"AddressTags">>, Name) -> {ok, Name};
72
:-(
output(<<"EmailTags">>, Name) -> {ok, Name};
73
:-(
output(<<"PrivacyClassificationTags">>, Name) -> {ok, Name};
74
:-(
output(<<"LogLevel">>, Name) -> {ok, list_to_binary(string:to_upper(atom_to_list(Name)))};
75
:-(
output(<<"TelephoneTags">>, Name) -> {ok, Name};
76
:-(
output(<<"MetricType">>, Type) -> {ok, Type};
77
:-(
output(<<"StatusCode">>, Code) -> {ok, Code}.
Line Hits Source