daml/daml-lf/tests/reinterpret
nickchapman-da 5b73813dfd
Support reinterpretation for failing commands (#9993)
* WIP: reinterpret must fail

changelog_begin
changelog_end

EXPLORE: add x/y prefix to reinterpret

MiniEngineTest.scala

MiniTests.daml

setup reinterpret testing one step down, to be able to see rollback nodes

MiniEngineTest.scala - refactor yreinterpret

first minimal reinterpret test

setup testcase for reinterpret on a command which throws

catch exception during reinterpret; and test

introduce type for Validating; avoid boolean blindness

remove exploratory MiniTests

remove exploratory x/y prefix on reinterpret

question

fix build

* small cleanup

* add `unsafeCompileForReinterpretation`; preserve interface of existing `unsafeCompile` (command list)

* remove the Validating type (not needed for this work)

* undo format change

* more private

* update comment for Engine.reinterpret

* test ensure failure works correctly; no rollback expected

* refactor to share duplicated code in reinterpret tests

* remove unhelpful create/ensure tests

* test that reinterpretation of an uncatchable error remains a failure

* test that rollback-version-check-error remains a failure for reinterpretation

* remove dev comment left in by accident
2021-06-23 10:39:10 +00:00
..
daml Support reinterpretation for failing commands (#9993) 2021-06-23 10:39:10 +00:00
AtVersion13.daml Support reinterpretation for failing commands (#9993) 2021-06-23 10:39:10 +00:00
AtVersion14.daml Support reinterpretation for failing commands (#9993) 2021-06-23 10:39:10 +00:00
daml.yaml Support reinterpretation for failing commands (#9993) 2021-06-23 10:39:10 +00:00