(t *testing.T)
| 795 | } |
| 796 | |
| 797 | func TestStartPrometheusServerDockerMissing(t *testing.T) { |
| 798 | // Not t.Parallel(): mutates PATH via t.Setenv. |
| 799 | t.Setenv("PATH", "") |
| 800 | |
| 801 | logger := slog.Make(sloghuman.Sink(&bytes.Buffer{})) |
| 802 | |
| 803 | cfg := &devConfig{prometheusServer: true, coderMetricsPort: 2114} |
| 804 | |
| 805 | started, err := startPrometheusServer(t.Context(), logger, cfg) |
| 806 | require.NoError(t, err) |
| 807 | assert.False(t, started) |
| 808 | } |
| 809 | |
| 810 | func TestPrometheusBannerEntry(t *testing.T) { |
| 811 | t.Parallel() |
nothing calls this directly
no test coverage detected