Skip to content

Commit 24620b2

Browse files
jvelillajocelyn
authored andcommitted
Added feature comments.
Added missing postconditions.
1 parent 9c7e29b commit 24620b2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

library/server/ewsgi/connectors/standalone/src/wgi_standalone_server_observer.e

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,41 @@ inherit
1616
feature -- Access
1717

1818
started: BOOLEAN
19+
-- is the server started?
1920

2021
stopped: BOOLEAN
22+
-- is the server stoped?
2123

2224
terminated: BOOLEAN
25+
-- is the server terminated?
2326

2427
port: INTEGER
28+
-- Server listening on port.
2529

2630
feature -- Event
2731

2832
on_launched (a_port: INTEGER)
2933
do
3034
started := True
3135
port := a_port
36+
ensure then
37+
started_set: started = True
38+
port_set: port = a_port
3239
end
3340

3441
on_stopped
3542
do
3643
stopped := True
44+
ensure then
45+
stopped_set: stopped = True
3746
end
3847

3948
on_terminated
4049
do
4150
port := 0
4251
terminated := True
52+
ensure then
53+
terminated_set: terminated = True
4354
end
4455

4556
note

0 commit comments

Comments
 (0)