Test saving decls in incremental saved state
commit54653c4ff58deedb5c6c0479b6c637d1741ecca6
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Fri, 2 Nov 2018 23:37:26 +0000 (2 16:37 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 2 Nov 2018 23:40:20 +0000 (2 16:40 -0700)
tree37b02c8316235785728e84683b909ea16843ed8b
parent9ceee144f3aae723f7bbe8d3a30231b9f0a9945c
Test saving decls in incremental saved state

Summary: When exporting class declarations to be stored in the saved state, if a declaration is not present in the decl heap, Decl_export will declare the class if it exists. These test cases exercise this behavior (which only arises when generating incremental saved states, since all declarations should be present when generating a saved state after a full init).

Reviewed By: dabek

Differential Revision: D10864984

fbshipit-source-id: eb2fd247bb55bc2e2f0d9a3e06fab4de861b7d4b
hphp/hack/src/server/saveStateService.ml
hphp/hack/test/integration_ml/integration_test_base.ml
hphp/hack/test/integration_ml/integration_test_base.mli
hphp/hack/test/integration_ml/saved_state/test_load_decls_stale_derived_class.ml