(base View)
| 26 | var _ Writeable = (*Patch)(nil) |
| 27 | |
| 28 | func NewPatch(base View) *Patch { |
| 29 | return &Patch{ |
| 30 | base: base, |
| 31 | diff: NewSnapshot(), |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func (p *Patch) Lookup(id ksuid.KSUID) (*data.Object, error) { |
| 36 | if s, err := p.diff.Lookup(id); err == nil { |
no test coverage detected