(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestNewServer_Logger(t *testing.T) { |
| 99 | server := New() |
| 100 | |
| 101 | // Check if errorLog is initialized properly |
| 102 | if server.errorLog == nil { |
| 103 | t.Error("expected errorLog to be initialized") |
| 104 | } |
| 105 | |
| 106 | // Check if logger writes to stderr |
| 107 | if server.errorLog.Writer() != os.Stderr { |
| 108 | t.Error("expected errorLog to write to stderr") |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | func TestNewServer_TLSConfig(t *testing.T) { |
| 113 | customTLSConfig := Config{ |