(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestNewServer_TLSConfig(t *testing.T) { |
| 113 | customTLSConfig := Config{ |
| 114 | TLSConfig: TLSConfig{ServeTLS: true}, |
| 115 | } |
| 116 | |
| 117 | server := New(customTLSConfig) |
| 118 | |
| 119 | // Assert that the TLS configuration is set correctly |
| 120 | if !server.config.TLSConfig.ServeTLS { |
| 121 | t.Error("expected ServeTLS to be true") |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | func TestAddRoute_ValidMethod(t *testing.T) { |
| 126 | server := New() |