Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 11343147f3
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (11 sloc) 0.455 kb
-module(pubsub_parser_tests).
-include_lib("eunit/include/eunit.hrl").
-include("../src/message.hrl").
parse_publish_selector_test() ->
Message = "publish-connection",
Res = pubsub_parser:parse(Message),
?assertMatch(#pipe_declaration{type = publish},Res).
parse_subscribe_selector_test() ->
Message = "subscribe-connection",
Res = pubsub_parser:parse(Message),
?assertMatch(#pipe_declaration{type = subscribe},Res).
Jump to Line
Something went wrong with that request. Please try again.