Module clique_test_group_leader

Implements an io server that can be used as a group leader in testing, and supports changing the size of the io device.

Behaviours: gen_server.

Description

Implements an io server that can be used as a group leader in testing, and supports changing the size of the io device.

Function Index

code_change/3
get_output/1Gets the output captured by the group leader.
handle_call/3
handle_cast/2
handle_info/2
init/1
new_group_leader/0Spawns the new group leader and makes it the current group_leader, linking it to the current process.
set_size/3Sets the dimensions of the group leader's output.
stop/1Stops the group leader process.
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

get_output/1

get_output(Pid::pid()) -> iodata()

Gets the output captured by the group leader.

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

new_group_leader/0

new_group_leader() -> pid()

Spawns the new group leader and makes it the current group_leader, linking it to the current process.

set_size/3

set_size(Pid::pid(), Cols::pos_integer(), Rows::pos_integer()) -> ok

Sets the dimensions of the group leader's output.

See also: io:columns/0, io:rows/0.

stop/1

stop(Pid::pid()) -> ok

Stops the group leader process.

terminate/2

terminate(X1, State) -> any()


Generated by EDoc