forked from mtusi2026/mtusi2026lab4
19 lines
443 B
Go
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
|
|
}
|