check httpServer
(t *testing.T)
| 9 | |
| 10 | // check httpServer |
| 11 | func TestNewHttpServer(t *testing.T) { |
| 12 | server := NewHttpServer() |
| 13 | |
| 14 | test.NotNil(t, server.router) |
| 15 | test.NotNil(t, server.stdServer) |
| 16 | test.NotNil(t, server.ServerConfig) |
| 17 | test.NotNil(t, server.SessionConfig) |
| 18 | test.NotNil(t, server.lock_session) |
| 19 | test.NotNil(t, server.binder) |
| 20 | // Skip pool checks to avoid sync.Pool copy warning |
| 21 | test.Equal(t, false, server.IsOffline()) |
| 22 | |
| 23 | // t.Log("is offline:",server.IsOffline()) |
| 24 | } |
| 25 | |
| 26 | func TestSesionConfig(t *testing.T) { |
| 27 | server := NewHttpServer() |
nothing calls this directly
no test coverage detected