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

Function must

coderd/prometheusmetrics/aggregator_test.go:720–725  ·  view source on GitHub ↗
(t T, err error)

Source from the content-addressed store, hash-verified

718}
719
720func must[T any](t T, err error) T {
721 if err != nil {
722 panic(err)
723 }
724 return t
725}

Callers 3

insertRunningFunction · 0.70
benchmarkRunnerFunction · 0.70
genAgentMetricFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected