MCPcopy Create free account
hub / github.com/maruel/panicparse / loadGoroutines

Function loadGoroutines

stack/html_test.go:286–295  ·  view source on GitHub ↗

loadGoroutines should match what is in regen.go.

()

Source from the content-addressed store, hash-verified

284
285// loadGoroutines should match what is in regen.go.
286func loadGoroutines() ([]byte, error) {
287 htmlRaw, err := os.ReadFile("goroutines.tpl")
288 if err != nil {
289 return nil, err
290 }
291 // Strip out leading whitespace.
292 re := regexp.MustCompile("(\n[ \t]*)+")
293 htmlRaw = re.ReplaceAll(htmlRaw, []byte("\n"))
294 return htmlRaw, nil
295}
296
297// getBuckets returns a slice for testing.
298func getBuckets() *Aggregated {

Callers 1

TestGenerateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…