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

Function similarGoroutines

stack/stack_test.go:422–428  ·  view source on GitHub ↗

similarGoroutines compares slice of Goroutine to be similar enough. Warning: it mutates inputs.

(t *testing.T, want, got []*Goroutine)

Source from the content-addressed store, hash-verified

420//
421// Warning: it mutates inputs.
422func similarGoroutines(t *testing.T, want, got []*Goroutine) {
423 zapGoroutines(t, want, got)
424 if diff := cmp.Diff(want, got); diff != "" {
425 t.Helper()
426 t.Fatalf("Goroutine mismatch (-want +got):\n%s", diff)
427 }
428}
429
430func zapGoroutines(t *testing.T, want, got []*Goroutine) {
431 if len(want) != len(got) {

Callers 7

TestGomoduleComplexFunction · 0.85
TestGoRunFunction · 0.85
testPanicArgsElidedFunction · 0.85
testPanicMismatchedFunction · 0.85
testPanicRaceFunction · 0.85
testPanicStrFunction · 0.85
testPanicUTF8Function · 0.85

Calls 1

zapGoroutinesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…