[erlang-questions] how does an erlang Socket/Port look from inside?

Dror Mein drormein@REDACTED
Wed Mar 26 16:45:16 CET 2014

Hey all,

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...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140326/95d4b190/attachment.htm>

More information about the erlang-questions mailing list