./ct_report/coverage/mongoose_module_metrics.COVER.html

1 -module(mongoose_module_metrics).
2
3 -export([opts_for_module/3]).
4
5 -ignore_xref([behaviour_info/1]).
6
7 -callback config_metrics(mongooseim:host_type()) -> any().
8
9 -optional_callbacks([config_metrics/1]).
10
11 -spec opts_for_module(mongooseim:host_type(), module(), [gen_mod:opt_key()]) ->
12 [{gen_mod:opt_key(), gen_mod:opt_value()}].
13 opts_for_module(HostType, Module, OptsToReport) ->
14 1004 try
15 1004 Opts = gen_mod:get_module_opts(HostType, Module),
16 1004 [get_opt(OptToReport, Opts) || OptToReport <- OptsToReport]
17 catch
18 464 _:_ -> [{none, none}]
19 end.
20
21 get_opt(Opt, Opts) ->
22 1008 {Opt, gen_mod:get_opt(Opt, Opts)}.
Line Hits Source