Module escalus_utils

Data Types

jid_spec()

jid_spec() = #client{jid = binary() | undefined, module = atom(), rcv_pid = pid() | undefined, event_client = any(), props = list()} | atom() | binary() | string()

Function Index

all_true/1
any_true/1
distinct_ordered_pairs/2
distinct_pairs/2
drop_first_such/2
each_with_index/3
get_jid/1
get_resource/1
get_server/1
get_short_jid/1
get_username/1
identity/1
is_prefix/2
jid_to_lower/1
log_stanzas/2
mix_match/3
pretty_stanza_list/1
regexp_get/2
show_backtrace/0
start_clients/1
start_clients/2

Function Details

all_true/1

all_true(List::[boolean()]) -> boolean()

any_true/1

any_true(List::[boolean()]) -> boolean()

distinct_ordered_pairs/2

distinct_ordered_pairs(Fun::fun((T, T) -> any()), List::[T]) -> integer()

distinct_pairs/2

distinct_pairs(Fun::fun((T, T) -> any()), List::[T]) -> integer()

drop_first_such/2

drop_first_such(Pred::fun((A) -> boolean()), List::[A]) -> [A]

each_with_index/3

each_with_index(Fun::fun((T, integer()) -> any()), Start::term(), List::[T]) -> integer()

get_jid/1

get_jid(Client::jid_spec()) -> binary()

get_resource/1

get_resource(JID::binary()) -> binary()

get_server/1

get_server(UserOrClient::jid_spec()) -> binary()

get_short_jid/1

get_short_jid(Client::#client{jid = binary() | undefined, module = atom(), rcv_pid = pid() | undefined, event_client = any(), props = list()} | atom() | binary() | string()) -> binary()

get_username/1

get_username(UserOrClient::jid_spec()) -> binary()

identity/1

identity(A) -> A

is_prefix/2

is_prefix(Prefix::binary(), Full::binary()) -> boolean()

jid_to_lower/1

jid_to_lower(Jid::binary()) -> binary()

log_stanzas/2

log_stanzas(Comment::iolist(), Stanzas::[exml:element()]) -> any()

mix_match/3

mix_match(Predgen::fun((A) -> fun((B) -> boolean())), Conds::[A], Cases::[B]) -> boolean()

pretty_stanza_list/1

pretty_stanza_list(Stanzas::[exml:element()]) -> string()

regexp_get/2

regexp_get(Jid::binary(), Regex::binary()) -> binary()

show_backtrace/0

show_backtrace() -> any()

start_clients/1

start_clients(Clients::[{term(), term()}]) -> {pid(), [pid()]}

start_clients/2

start_clients(Config0::escalus_config:config(), ClientRecipes::[{term(), term()}]) -> {pid(), [pid()]}


Generated by EDoc