mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
fba5decae5
In practice, States must all implement the full interface, so checking for each method set only leaves gaps where tests could be skipped. Change the helper to only accept a full state.State implementation. Add some Lineage, Version, and TFVersion checks to TestState to avoid regressions. Compare the copy test against the immediate State returnedm rather than our previous "current" state. Check that the states round-trip and still marhsal identically via MarshalEqual. |
||
---|---|---|
.. | ||
remote | ||
testdata | ||
backup_test.go | ||
backup.go | ||
inmem_test.go | ||
inmem.go | ||
local_lock_unix.go | ||
local_lock_windows.go | ||
local_test.go | ||
local.go | ||
lock_test.go | ||
lock.go | ||
state_test.go | ||
state.go | ||
testing.go |