(t testing.TB, opts ...types.RegistryOption)
| 2638 | } |
| 2639 | |
| 2640 | func newTestRegistry(t testing.TB, opts ...types.RegistryOption) *types.Registry { |
| 2641 | t.Helper() |
| 2642 | var o []any |
| 2643 | for _, opt := range opts { |
| 2644 | o = append(o, opt) |
| 2645 | } |
| 2646 | reg, err := types.NewRegistry(o...) |
| 2647 | if err != nil { |
| 2648 | t.Fatalf("types.NewRegistry() failed: %v", err) |
| 2649 | } |
| 2650 | return reg |
| 2651 | } |
| 2652 | |
| 2653 | func newTestPartialActivation(t testing.TB, in any, unknowns ...*AttributePattern) any { |
| 2654 | t.Helper() |
no test coverage detected