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

Function withAPIVersion

coderd/healthcheck/provisioner_test.go:407–411  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

405}
406
407func withAPIVersion(v string) func(*database.ProvisionerDaemon) {
408 return func(pd *database.ProvisionerDaemon) {
409 pd.APIVersion = v
410 }
411}
412
413func fakeProvisionerDaemon(t *testing.T, opts ...func(*database.ProvisionerDaemon)) database.ProvisionerDaemon {
414 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected