Permalink
Browse files

Changed plain messages Option to received_messages

  • Loading branch information...
1 parent 5fc4b20 commit e413f0f35a4dd8f97398d992bf55f82e866d108b Gianfranco committed Jun 30, 2011
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/frame_axiom.erl
  2. +1 −1 test/frame_axiom_tests.erl
View
@@ -100,9 +100,9 @@ snapshot(Ets,process,replaced_named) ->
Current = named_processes_with_pid(),
ets:insert(Ets,{{process,replaced_named},Current}),
Ets;
-snapshot(Ets,process,messages) ->
+snapshot(Ets,process,received_messages) ->
MessagesWithPids = messages_with_pids(),
- ets:insert(Ets,{{process,messages},MessagesWithPids}),
+ ets:insert(Ets,{{process,received_messages},MessagesWithPids}),
Ets.
diff(Ets,[X]) ->
@@ -198,9 +198,9 @@ diff(Ets,process,replaced_named) ->
[{replaced,N}||{P,N} <- CurrentNamedWithPid,
proplists:get_value(P,RecordedWithPid) == undefined andalso
lists:keyfind(N,2,RecordedWithPid) =/= false];
-diff(Ets,process,messages) ->
+diff(Ets,process,received_messages) ->
MessagesWithPids = messages_with_pids(),
- Key = {process,messages},
+ Key = {process,received_messages},
[{Key,RecordedWithPid}] = ets:lookup(Ets,Key),
lists:foldl(
fun({RecPid,RecMessages},Acc) ->
@@ -42,7 +42,7 @@ process_death_diff_test() ->
?assertEqual([{died,Pid}],frame_axiom:diff(Ref,[{process,Options}])).
process_mailbox_received_test() ->
- Options = [messages],
+ Options = [received_messages],
Pid = synchronoulsy_start_a_process(),
Ref = frame_axiom:snapshot([{process,Options}]),
Message = {iMessage,make_ref()},

0 comments on commit e413f0f

Please sign in to comment.