MCPcopy Index your code
hub / github.com/maruel/panicparse / getBuckets

Function getBuckets

stack/html_test.go:298–360  ·  view source on GitHub ↗

getBuckets returns a slice for testing.

()

Source from the content-addressed store, hash-verified

296
297// getBuckets returns a slice for testing.
298func getBuckets() *Aggregated {
299 return &Aggregated{
300 Snapshot: &Snapshot{
301 LocalGOROOT: runtime.GOROOT(),
302 LocalGOPATHs: []string{"/gopath"},
303 RemoteGOROOT: "/golang",
304 RemoteGOPATHs: map[string]string{"/gopath": "/gopath"},
305 LocalGomods: map[string]string{"/tmp": "example.com/foo"},
306 },
307 Buckets: []*Bucket{
308 {
309 Signature: Signature{
310 State: "chan receive",
311 Stack: Stack{
312 Calls: []Call{
313 newCall(
314 "main.func·001",
315 Args{Values: []Arg{{Value: 0x11000000}, {Value: 2}}},
316 "/gopath/src/github.com/maruel/panicparse/stack/stack.go",
317 72),
318 {
319 Func: newFunc("sliceInternal"),
320 Args: Args{Values: []Arg{{Value: 0x11000000}, {Value: 2}}},
321 RemoteSrcPath: "/golang/src/sort/slices.go",
322 Line: 72,
323 Location: Stdlib,
324 },
325 {
326 Func: newFunc("Slice"),
327 Args: Args{Values: []Arg{{Value: 0x11000000}, {Value: 2}}},
328 RemoteSrcPath: "/golang/src/sort/slices.go",
329 Line: 72,
330 Location: Stdlib,
331 },
332 newCall(
333 "DoStuff",
334 Args{Values: []Arg{{Value: 0x11000000}, {Value: 2}}},
335 "/gopath/src/foo/bar.go",
336 72),
337 newCall(
338 "doStuffInternal",
339 Args{
340 Values: []Arg{{Value: 0x11000000}, {Value: 2}},
341 Elided: true,
342 },
343 "/gopath/src/foo/bar.go",
344 72),
345 },
346 },
347 },
348 IDs: []int{1, 2},
349 First: true,
350 },
351 {
352 IDs: []int{3},
353 Signature: Signature{
354 State: "running",
355 Stack: Stack{Elided: true},

Calls 2

newCallFunction · 0.85
newFuncFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…