[erlang-questions] how does an erlang Socket/Port look from inside?
Wed Mar 26 16:45:16 CET 2014
I want to eunit+meck test a simple telnet client which uses the guard is_port(Port).
how can I pass something in meck:expect/4 that will pass the guard?
is it a record/reference that I can make up?
can I use hd(erlang:ports()) -> #Port<0.0> without blowing up?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions