internal
time_range.go +4 -3
time_range_test.go +42 -0
session_state.go +7 -1
+ 4
- 3
@@ -73,10 +73,11 @@ func (r *TimeRange) isInTimeRange(t time.Time) bool {
@@ -73,10 +73,11 @@ func (r *TimeRange) isInTimeRange(t time.Time) bool {
+ 42
- 0
@@ -126,6 +126,12 @@ func TestTimeRangeIsInRange(t *testing.T) {
@@ -126,6 +126,12 @@ func TestTimeRangeIsInRange(t *testing.T) {
@@ -299,6 +305,42 @@ func TestTimeRangeIsInSameRange(t *testing.T) {
@@ -299,6 +305,42 @@ func TestTimeRangeIsInSameRange(t *testing.T) {
+ 7
- 1
@@ -23,7 +23,7 @@ func (sm *stateMachine) Start(s *session) {
@@ -23,7 +23,7 @@ func (sm *stateMachine) Start(s *session) {
@@ -101,6 +101,10 @@ func (sm *stateMachine) Timeout(session *session, e internal.Event) {
@@ -101,6 +101,10 @@ func (sm *stateMachine) Timeout(session *session, e internal.Event) {
@@ -111,11 +115,13 @@ func (sm *stateMachine) CheckSessionTime(session *session, now time.Time) {
@@ -111,11 +115,13 @@ func (sm *stateMachine) CheckSessionTime(session *session, now time.Time) {