(t *testing.T, in any)
| 557 | } |
| 558 | |
| 559 | func testActivation(t *testing.T, in any) Activation { |
| 560 | t.Helper() |
| 561 | if in == nil { |
| 562 | return EmptyActivation() |
| 563 | } |
| 564 | a, err := NewActivation(in) |
| 565 | if err != nil { |
| 566 | t.Fatalf("NewActivation(%v) failed: %v", in, err) |
| 567 | } |
| 568 | return a |
| 569 | } |
| 570 | |
| 571 | func optionalDecls(t *testing.T) []*decls.FunctionDecl { |
| 572 | paramType := types.NewTypeParamType("T") |
no test coverage detected