Files
opentf/command
Martin Atkins e918fa83ec command/format: Don't panic when item removed from list of objects
Due to these tests happening in the wrong order, removing an object from
the end of a sequence of objects would previously cause a bounds-check
panic.

Rather than a more severe rework of the logic here, for now we'll just
introduce an extra precondition to prevent the panic. The code that
follows already handles the case where there _is_ no new object (i.e. the
"old" object is being deleted) as long as we're able to pass through this
type-checking logic.

The new "JSON list of objects - removing item" test covers this problem
by rendering a diff for an object being removed from the end of a list
of objects within a JSON value.
2019-03-19 15:46:40 -07:00
..
2015-04-29 13:07:13 -05:00
2018-10-16 19:14:11 -07:00
2018-10-16 19:14:11 -07:00
2018-01-09 23:13:33 +00:00
2019-03-01 12:30:51 -08:00
2018-10-16 18:24:47 -07:00
2018-11-26 23:38:37 +00:00
2014-05-24 12:04:43 -07:00