Validate the active states of the session
(t *testing.T)
| 11 | |
| 12 | // Validate the active states of the session |
| 13 | func TestSession_ActiveControl(t *testing.T) { |
| 14 | _, cancel := context.WithCancel(context.Background()) |
| 15 | defer cancel() |
| 16 | session := newSession(4, actor{}, cancel) |
| 17 | // session starts out not active |
| 18 | assert.False(t, session.Active()) |
| 19 | session.active.Store(true) |
| 20 | assert.True(t, session.Active()) |
| 21 | session.Stop() |
| 22 | assert.False(t, session.Active()) |
| 23 | } |
| 24 | |
| 25 | // Validate that the session filters events |
| 26 | func TestSession_Insert(t *testing.T) { |
nothing calls this directly
no test coverage detected