(zones ...string)
| 103 | } |
| 104 | |
| 105 | func failingFunctionOnZones(zones ...string) func(context.Context, *InstanceDesc) (any, error) { |
| 106 | return func(ctx context.Context, ing *InstanceDesc) (any, error) { |
| 107 | if slices.Contains(zones, ing.Zone) { |
| 108 | return nil, errZoneFailure |
| 109 | } |
| 110 | return 1, nil |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func TestReplicationSet_Do(t *testing.T) { |
| 115 | tests := []struct { |
no outgoing calls
no test coverage detected