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

Function withName

coderd/healthcheck/provisioner_test.go:382–386  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

380}
381
382func withName(s string) func(*database.ProvisionerDaemon) {
383 return func(pd *database.ProvisionerDaemon) {
384 pd.Name = s
385 }
386}
387
388func withCreatedAt(at time.Time) func(*database.ProvisionerDaemon) {
389 return func(pd *database.ProvisionerDaemon) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected