MCPcopy Create free account
hub / github.com/coder/coder / marshalRecord

Function marshalRecord

scripts/gotestsummary/main.go:443–450  ·  view source on GitHub ↗
(record any)

Source from the content-addressed store, hash-verified

441}
442
443func marshalRecord(record any) ([]byte, error) {
444 line, err := json.Marshal(record)
445 if err != nil {
446 return nil, err
447 }
448 line = append(line, '\n')
449 return line, nil
450}
451
452func stripANSI(output string) string {
453 return ansiEscapePattern.ReplaceAllString(output, "")

Callers 3

writeFailuresNDJSONFunction · 0.85
truncateFailureRecordFunction · 0.85

Calls 1

MarshalMethod · 0.45

Tested by 1