(t *testing.T, in any)
| 581 | } |
| 582 | |
| 583 | func testActivation(t *testing.T, in any) Activation { |
| 584 | t.Helper() |
| 585 | if in == nil { |
| 586 | return EmptyActivation() |
| 587 | } |
| 588 | a, err := NewActivation(in) |
| 589 | if err != nil { |
| 590 | t.Fatalf("NewActivation(%v) failed: %v", in, err) |
| 591 | } |
| 592 | return a |
| 593 | } |
| 594 | |
| 595 | func optionalDecls(t *testing.T) []*decls.FunctionDecl { |
| 596 | paramType := types.NewTypeParamType("T") |
no test coverage detected