MCPcopy Index your code
hub / github.com/coder/coder / TestStartPrometheusServerDockerMissing

Function TestStartPrometheusServerDockerMissing

scripts/develop/main_test.go:797–808  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

795}
796
797func 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
810func TestPrometheusBannerEntry(t *testing.T) {
811 t.Parallel()

Callers

nothing calls this directly

Calls 3

startPrometheusServerFunction · 0.85
SetenvMethod · 0.80
ContextMethod · 0.65

Tested by

no test coverage detected