similarSignatures compares Signature to be similar enough. Warning: it mutates inputs.
(t *testing.T, want, got *Signature)
| 443 | // |
| 444 | // Warning: it mutates inputs. |
| 445 | func similarSignatures(t *testing.T, want, got *Signature) { |
| 446 | zapSignatures(t, want, got) |
| 447 | if diff := cmp.Diff(want, got); diff != "" { |
| 448 | t.Helper() |
| 449 | t.Fatalf("Signature mismatch (-want +got):\n%s", diff) |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | func zapSignatures(t *testing.T, want, got *Signature) { |
| 454 | // Signature.Stack.([]Call) |
no test coverage detected
searching dependent graphs…