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

Method end

cli/cliui/provisionerjob.go:255–266  ·  view source on GitHub ↗

nolint:revive

(stage string, duration time.Duration, ok bool)

Source from the content-addressed store, hash-verified

253
254//nolint:revive
255func (s *stageWriter) end(stage string, duration time.Duration, ok bool) {
256 s.logBuf.Reset()
257
258 mark := "✔"
259 if !ok {
260 mark = "✘"
261 }
262 if duration < 0 {
263 duration = 0
264 }
265 _, _ = fmt.Fprintf(s.w, "=== %s %s [%dms]\n", mark, stage, duration.Milliseconds())
266}
267
268func (s *stageWriter) Log(createdAt time.Time, level codersdk.LogLevel, line string) {
269 w := s.w

Callers 8

CompleteMethod · 0.95
FailMethod · 0.95
updateTemplateFunction · 0.80
resetExternalAuthKeyFunction · 0.80
app.spec.tsFile · 0.80

Calls 1

ResetMethod · 0.65

Tested by

no test coverage detected