forked from PowerMeMobile/smppsink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
27 lines (19 loc) · 926 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
1. Implement randomly choose a status value from a range or choose from a list:
submit:{status:{choose:[0,1,2,3,5]}, delay:{range:[0,2]}}
or ever BETTER simply
submit:{status:[0,1,2,3,4,5], delay:[0,2]}
Will return on of statuses 0-5 and with 0-2 secs delay
submit:{receipt:[accepted, delivered, delivered, delivered, unroute]}
The more statuses the more frequently they will be chosen
2. Implement incoming messages logic. So we can completely get rid of SMPPSim.
3. Implement cover analisis.
http://www.erlang.org/documentation/doc-5.10.4/lib/tools-2.6.13/doc/html/cover.html
cover:start().
cover:compile_directory("../../src").
START TESTS
Modules = [smppsink_commands_builder, smppsink_commands_performer].
[cover:analyse(M, coverage, module) || M <- Modules].
[{ok,{smppsink_commands_builder,{79,14}}},
{ok,{smppsink_commands_performer,{72,9}}}]
[cover:analyse_to_file(M, [html]) || M <- Modules].
cover:stop().