terraform/states/statemgr
Kristin Laemmert 95eca06782
statemgr: add a NewUnlockErrorFull state manager for tests (#25823)
* 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.
2020-08-14 14:14:51 -04:00
..
testdata
doc.go
filesystem.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
filesystem_lock_unix.go
filesystem_lock_windows.go
filesystem_test.go missing wg.Wait in concurrent test 2020-04-08 10:55:20 -04:00
helper.go
lineage.go
lock.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
lock_test.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
locker.go Fix typos (#24531) 2020-04-13 08:34:40 -04:00
migrate.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
migrate_test.go
persistent.go
plan.go
snapshotmetarel_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
statemgr.go
statemgr_fake.go statemgr: add a NewUnlockErrorFull state manager for tests (#25823) 2020-08-14 14:14:51 -04:00
statemgr_test.go
testing.go remove a few traces of states.EachMode 2020-04-30 09:22:15 -04:00
transient.go
transient_inmem.go