Files

19 lines
443 B
Go

package postgres
import "context"
type reconcileObjects struct {
exists bool
}
// Exists supplies a deterministic object-side fault while exercising real SQL transitions.
func (r *reconcileObjects) Exists(context.Context, string) (bool, error) {
return r.exists, nil
}
// Remove models an idempotent object removal for SQL cleanup tests.
func (r *reconcileObjects) Remove(context.Context, string) error {
r.exists = false
return nil
}