(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestServer_AuthDisabled(t *testing.T) { |
| 41 | cfg := DefaultConfig() |
| 42 | if cfg.AuthEnabled() { |
| 43 | t.Error("DefaultConfig should have auth disabled") |
| 44 | } |
| 45 | srv := New(cfg) |
| 46 | if srv == nil { |
| 47 | t.Fatal("New() returned nil") |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestServer_AuthEnabled(t *testing.T) { |
| 52 | cfg := &Config{Host: "127.0.0.1", Port: 8080, AuthToken: "testtoken"} |
nothing calls this directly
no test coverage detected