TestIODevice (anubis_mcp v1.6.0)

Copy Markdown

Minimal Erlang IO-protocol server for exercising Anubis.Server.Transport.STDIO in tests.

Read requests are intentionally never replied to, so a reader task blocks forever instead of seeing :eof — this mirrors a live stdin while keeping tests deterministic. Write requests are buffered and can be retrieved via contents/1.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

contents(device)

@spec contents(GenServer.server()) :: binary()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()