95eca06782
* statemgr: add a NewUnlockErrorFull state manager for tests I've frequently needed to coerce Unlock() errors for tests and it's been awkward and fraught every time, so I decided to add a full state manger that returns *mostly* errors. I intend to use this in conjunction with the clistate.Locker interface, which first calls Lock() (to block if the mutex is in use) at the start of Unlock(), so Lock() rather awkwardly needed to succeed. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
filesystem.go | ||
filesystem_lock_unix.go | ||
filesystem_lock_windows.go | ||
filesystem_test.go | ||
helper.go | ||
lineage.go | ||
lock.go | ||
lock_test.go | ||
locker.go | ||
migrate.go | ||
migrate_test.go | ||
persistent.go | ||
plan.go | ||
snapshotmetarel_string.go | ||
statemgr.go | ||
statemgr_fake.go | ||
statemgr_test.go | ||
testing.go | ||
transient.go | ||
transient_inmem.go |