(t *testing.T, options ...mockResolverOption)
| 49 | } |
| 50 | |
| 51 | func newMockResolver(t *testing.T, options ...mockResolverOption) *mockResolver { |
| 52 | resolver := &mockResolver{ |
| 53 | t: t, |
| 54 | secretsID: mockID, |
| 55 | value: mockSecretValue, |
| 56 | metadata: mockMetadata, |
| 57 | } |
| 58 | for _, opt := range options { |
| 59 | resolver = opt(resolver) |
| 60 | } |
| 61 | return resolver |
| 62 | } |
| 63 | |
| 64 | type mockResolverOption func(*mockResolver) *mockResolver |
| 65 |
no outgoing calls
no test coverage detected