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

Function tableDiff

cli/task_status_test.go:284–290  ·  view source on GitHub ↗
(want, got string)

Source from the content-addressed store, hash-verified

282}
283
284func tableDiff(want, got string) string {
285 var gotTrimmed strings.Builder
286 for _, line := range strings.Split(got, "\n") {
287 _, _ = gotTrimmed.WriteString(strings.TrimRight(line, " ") + "\n")
288 }
289 return cmp.Diff(strings.TrimSpace(want), strings.TrimSpace(gotTrimmed.String()))
290}

Callers 1

Test_TaskStatusFunction · 0.85

Calls 2

WriteStringMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected