improve crate structure & filenames of hackrs_test
commit1bdfb405f847e9a0681b23fc1e449b04b11db2df
authorShayne Fletcher <shaynefletcher@fb.com>
Wed, 9 Mar 2022 23:37:55 +0000 (9 15:37 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Mar 2022 23:37:55 +0000 (9 15:37 -0800)
treedfc6e85b6e7aaa76ed2bc7779b22748e98f54739
parent8e7d417769badc26ad2ebddea6691ef81e7ca8a9
improve crate structure & filenames of hackrs_test

Summary:
- move the existing tests into `folded_decl_provider/mod.rs`
  - the intent is to provide flexibility allowing for grouping tests by category e.g. `type_provider`, `folded_decl_provider`, ... and sub-categories e.g. `folded_decl_provider::breathing_tests`, `folded_decl_provider::inheritance_tests` and so on

- extend the test context to produce a typing decl provider and also squirrel away the naming provider for completeness

- change the context to hold pointers to trait objects

Differential Revision: D34763196

fbshipit-source-id: 5d89a3fc5f76be827718d3956369643b5611fcca
hphp/hack/src/rupro/test/folded_decl_provider/mod.rs [moved from hphp/hack/src/rupro/test/test_file_missing_error.rs with 93% similarity]
hphp/hack/src/rupro/test/lib.rs