Skip to content

Commit

Permalink
move all explicitly marked model generators from .json -> .models
Browse files Browse the repository at this point in the history
Summary: refactortractor

Reviewed By: dkgi

Differential Revision: D47552417

fbshipit-source-id: 187cb264b56a7bef1ca0e3293dc509a345aa001e
  • Loading branch information
Sinan Cepel authored and facebook-github-bot committed Jul 19, 2023
1 parent ebcc528 commit d30714d
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/model-generator/tests/DataCastFeatureGeneratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ using namespace marianatrench;

namespace {

boost::filesystem::path json_file_path() {
boost::filesystem::path models_file_path() {
return test::find_repository_root() /
"configuration/model-generators/propagations/DataCastFeatureGenerator.json";
"configuration/model-generators/propagations/DataCastFeatureGenerator.models";
}

} // namespace
Expand Down Expand Up @@ -68,7 +68,7 @@ TEST_F(DataCastFeatureGeneratorTest, CastToInt) {

EXPECT_THAT(
JsonModelGenerator::from_file(
"DataCastFeatureGenerator", context, json_file_path())
"DataCastFeatureGenerator", context, models_file_path())
.emit_method_models(*context.methods),
testing::UnorderedElementsAre(expected_model));
}
Expand Down Expand Up @@ -113,7 +113,7 @@ TEST_F(DataCastFeatureGeneratorTest, CastToBool) {

EXPECT_THAT(
JsonModelGenerator::from_file(
"DataCastFeatureGenerator", context, json_file_path())
"DataCastFeatureGenerator", context, models_file_path())
.emit_method_models(*context.methods),
testing::UnorderedElementsAre(expected_model));
}

0 comments on commit d30714d

Please sign in to comment.