(t *testing.T)
| 251 | } |
| 252 | |
| 253 | func TestPrintBanner_ReadOnlyAndDev(t *testing.T) { |
| 254 | dir := createTestTaskDir(t) |
| 255 | s := NewServer(Config{Port: 3000, ScanDir: dir, ReadOnly: true, Dev: true}) |
| 256 | |
| 257 | output := captureStdout(t, func() { |
| 258 | s.printBanner() |
| 259 | }) |
| 260 | |
| 261 | if !strings.Contains(output, "Read-only mode") { |
| 262 | t.Error("expected read-only message in banner") |
| 263 | } |
| 264 | if !strings.Contains(output, "Dev mode") { |
| 265 | t.Error("expected dev mode message in banner") |
| 266 | } |
| 267 | } |
nothing calls this directly
no test coverage detected