From 296484e49c1d33d4d72224b89fd36f7186434e4f Mon Sep 17 00:00:00 2001 From: Guru Mehar Rachaputi Date: Thu, 11 Jul 2024 20:24:29 +0200 Subject: [PATCH] refactor: filenames changed (#796) * refactor: filenames changed - src and header filenames changed to google naming convention Signed-off-by: Guru Mehar Rachaputi * refactor: filename changed - CI error fixed Signed-off-by: Guru Mehar Rachaputi --------- Signed-off-by: Guru Mehar Rachaputi --- BUILD.bazel | 4 +- README.md | 4 +- examples/basic/main.cpp | 2 +- examples/person/main.cpp | 2 +- include/faker-cxx/Faker.h | 40 ----- include/faker-cxx/{Airline.h => airline.h} | 2 +- include/faker-cxx/{Animal.h => animal.h} | 2 +- include/faker-cxx/{Book.h => book.h} | 2 +- include/faker-cxx/{Color.h => color.h} | 4 +- include/faker-cxx/{Commerce.h => commerce.h} | 2 +- include/faker-cxx/{Company.h => company.h} | 2 +- include/faker-cxx/{Computer.h => computer.h} | 2 +- include/faker-cxx/{Crypto.h => crypto.h} | 2 +- include/faker-cxx/{Database.h => database.h} | 2 +- include/faker-cxx/{Datatype.h => datatype.h} | 2 +- include/faker-cxx/{Date.h => date.h} | 2 +- include/faker-cxx/faker.h | 40 +++++ include/faker-cxx/{Finance.h => finance.h} | 6 +- include/faker-cxx/{Food.h => food.h} | 2 +- include/faker-cxx/{Git.h => git.h} | 4 +- include/faker-cxx/{Hacker.h => hacker.h} | 2 +- include/faker-cxx/{Helper.h => helper.h} | 2 +- include/faker-cxx/{Image.h => image.h} | 2 +- include/faker-cxx/{Internet.h => internet.h} | 4 +- include/faker-cxx/{Location.h => location.h} | 4 +- include/faker-cxx/{Lorem.h => lorem.h} | 2 +- include/faker-cxx/{Medicine.h => medicine.h} | 2 +- include/faker-cxx/{Movie.h => movie.h} | 2 +- include/faker-cxx/{Music.h => music.h} | 2 +- include/faker-cxx/{Number.h => number.h} | 0 include/faker-cxx/{Person.h => person.h} | 4 +- include/faker-cxx/{Phone.h => phone.h} | 2 +- include/faker-cxx/{Plant.h => plant.h} | 2 +- .../{RandomGenerator.h => random_generator.h} | 0 include/faker-cxx/{Science.h => science.h} | 2 +- include/faker-cxx/{Sport.h => sport.h} | 2 +- include/faker-cxx/{String.h => string.h} | 6 +- include/faker-cxx/{System.h => system.h} | 2 +- .../faker-cxx/types/{Country.h => country.h} | 0 include/faker-cxx/types/{Hex.h => hex.h} | 0 .../types/{Precision.h => precision.h} | 0 include/faker-cxx/{Vehicle.h => vehicle.h} | 2 +- .../faker-cxx/{VideoGame.h => video_game.h} | 2 +- include/faker-cxx/{Weather.h => weather.h} | 2 +- include/faker-cxx/{Word.h => word.h} | 2 +- src/CMakeLists.txt | 146 +++++++++--------- src/common/{AlgoHelper.h => algo_helper.h} | 6 +- .../{FormatHelper.cpp => format_helper.cpp} | 2 +- .../{FormatHelper.h => format_helper.h} | 4 +- src/common/{LuhnCheck.cpp => luhn_check.cpp} | 2 +- src/common/{LuhnCheck.h => luhn_check.h} | 2 +- .../{StringHelper.cpp => string_helper.cpp} | 2 +- .../{StringHelper.h => string_helper.h} | 2 +- .../airline/{Airline.cpp => airline.cpp} | 10 +- .../airline/{AirlineData.h => airline_data.h} | 2 +- src/modules/animal/{Animal.cpp => animal.cpp} | 6 +- .../animal/{AnimalData.h => animal_data.h} | 0 src/modules/book/{Book.cpp => book.cpp} | 6 +- src/modules/book/{BookData.h => book_data.h} | 0 src/modules/color/{Color.cpp => color.cpp} | 14 +- .../color/{ColorData.h => color_data.h} | 0 .../commerce/{Commerce.cpp => commerce.cpp} | 10 +- .../{CommerceData.h => commerce_data.h} | 0 .../company/{Company.cpp => company.cpp} | 12 +- .../company/{CompanyData.h => company_data.h} | 0 .../computer/{Computer.cpp => computer.cpp} | 6 +- .../{ComputerData.h => computer_data.h} | 0 src/modules/crypto/{Crypto.cpp => crypto.cpp} | 4 +- .../database/{Database.cpp => database.cpp} | 10 +- .../{DatabaseData.h => database_data.h} | 0 .../datatype/{Datatype.cpp => datatype.cpp} | 4 +- src/modules/date/{Date.cpp => date.cpp} | 10 +- src/modules/date/{DateData.h => date_data.h} | 0 .../finance/{Finance.cpp => finance.cpp} | 20 +-- .../finance/{FinanceData.h => finance_data.h} | 2 +- src/modules/food/{Food.cpp => food.cpp} | 6 +- src/modules/food/{FoodData.h => food_data.h} | 0 src/modules/git/{Git.cpp => git.cpp} | 24 +-- src/modules/hacker/{Hacker.cpp => hacker.cpp} | 8 +- .../hacker/{HackerData.h => hacker_data.h} | 0 src/modules/helper/{Helper.cpp => helper.cpp} | 8 +- src/modules/image/{Image.cpp => image.cpp} | 8 +- .../internet/{Internet.cpp => internet.cpp} | 26 ++-- .../{InternetData.h => internet_data.h} | 0 .../location/{Location.cpp => location.cpp} | 18 +-- .../{LocationData.h => location_data.h} | 0 src/modules/lorem/{Lorem.cpp => lorem.cpp} | 12 +- .../lorem/{LoremData.h => lorem_data.h} | 0 .../medicine/{Medicine.cpp => medicine.cpp} | 6 +- .../{MedicineData.h => medicine_data.h} | 0 src/modules/movie/{Movie.cpp => movie.cpp} | 6 +- .../movie/{MovieData.h => movie_data.h} | 2 +- src/modules/music/{Music.cpp => music.cpp} | 6 +- .../music/{MusicData.h => music_data.h} | 0 src/modules/person/{Person.cpp => person.cpp} | 20 +-- .../person/{PersonData.h => person_data.h} | 2 +- src/modules/phone/{Phone.cpp => phone.cpp} | 8 +- .../phone/{PhoneData.h => phone_data.h} | 0 src/modules/plant/{Plant.cpp => plant.cpp} | 6 +- .../plant/{PlantData.h => plant_data.h} | 0 .../science/{Science.cpp => science.cpp} | 6 +- .../science/{ScienceData.h => science_data.h} | 2 +- src/modules/sport/{Sport.cpp => sport.cpp} | 6 +- .../sport/{SportData.h => sport_data.h} | 0 src/modules/string/{String.cpp => string.cpp} | 14 +- .../string/{StringData.h => string_data.h} | 0 src/modules/system/{System.cpp => system.cpp} | 22 +-- .../system/{SystemData.h => system_data.h} | 2 +- .../vehicle/{Vehicle.cpp => vehicle.cpp} | 12 +- .../vehicle/{VehicleData.h => vehicle_data.h} | 0 .../video_game.cpp} | 6 +- .../video_game_data.h} | 0 .../weather/{Weather.cpp => weather.cpp} | 6 +- .../weather/{WeatherData.h => weather_data.h} | 0 src/modules/word/{Word.cpp => word.cpp} | 6 +- src/modules/word/{WordData.h => word_data.h} | 2 +- .../word/{WordStore.h => word_store.h} | 0 tests/CMakeLists.txt | 78 +++++----- ...tHelperTest.cpp => format_helper_test.cpp} | 2 +- ...{LuhnCheckTest.cpp => luhn_check_test.cpp} | 2 +- ...gHelperTest.cpp => string_helper_test.cpp} | 2 +- .../{AirlineTest.cpp => airline_test.cpp} | 4 +- .../{AnimalTest.cpp => animal_test.cpp} | 4 +- .../book/{BookTest.cpp => book_test.cpp} | 4 +- .../color/{ColorTest.cpp => color_test.cpp} | 10 +- .../{CommerceTest.cpp => commerce_test.cpp} | 8 +- .../{CompanyTest.cpp => company_test.cpp} | 8 +- .../{ComputerTest.cpp => computer_test.cpp} | 4 +- .../{CryptoTest.cpp => crypto_test.cpp} | 2 +- .../{DatabaseTest.cpp => database_test.cpp} | 6 +- .../{DatatypeTest.cpp => datatype_test.cpp} | 2 +- .../date/{DateTest.cpp => date_test.cpp} | 6 +- .../{FinanceTest.cpp => finance_test.cpp} | 12 +- .../food/{FoodTest.cpp => food_test.cpp} | 4 +- .../modules/git/{GitTest.cpp => git_test.cpp} | 6 +- .../{HackerTest.cpp => hacker_test.cpp} | 4 +- .../{HelperTest.cpp => helper_test.cpp} | 4 +- .../image/{ImageTest.cpp => image_test.cpp} | 4 +- .../{InternetTest.cpp => internet_test.cpp} | 16 +- .../{LocationTest.cpp => location_test.cpp} | 12 +- .../lorem/{LoremTest.cpp => lorem_test.cpp} | 6 +- .../{MedicineTest.cpp => medicine_test.cpp} | 4 +- .../movie/{MovieTest.cpp => movie_test.cpp} | 4 +- .../music/{MusicTest.cpp => music_test.cpp} | 4 +- .../{NumberTest.cpp => number_test.cpp} | 2 +- .../{PersonTest.cpp => person_test.cpp} | 12 +- .../phone/{PhoneTest.cpp => phone_test.cpp} | 4 +- .../plant/{PlantTest.cpp => plant_test.cpp} | 4 +- .../{ScienceTest.cpp => science_test.cpp} | 4 +- .../sport/{SportTest.cpp => sport_test.cpp} | 4 +- .../{StringTest.cpp => string_test.cpp} | 8 +- .../{SystemTest.cpp => system_test.cpp} | 4 +- .../{VehicleTest.cpp => vehicle_test.cpp} | 4 +- .../{VersionTest.cpp => version_test.cpp} | 2 +- .../video_game_test.cpp} | 4 +- .../{WeatherTest.cpp => weather_test.cpp} | 4 +- .../word/{WordTest.cpp => word_test.cpp} | 6 +- 157 files changed, 497 insertions(+), 497 deletions(-) delete mode 100644 include/faker-cxx/Faker.h rename include/faker-cxx/{Airline.h => airline.h} (99%) rename include/faker-cxx/{Animal.h => animal.h} (99%) rename include/faker-cxx/{Book.h => book.h} (97%) rename include/faker-cxx/{Color.h => color.h} (98%) rename include/faker-cxx/{Commerce.h => commerce.h} (99%) rename include/faker-cxx/{Company.h => company.h} (98%) rename include/faker-cxx/{Computer.h => computer.h} (98%) rename include/faker-cxx/{Crypto.h => crypto.h} (92%) rename include/faker-cxx/{Database.h => database.h} (97%) rename include/faker-cxx/{Datatype.h => datatype.h} (96%) rename include/faker-cxx/{Date.h => date.h} (99%) create mode 100644 include/faker-cxx/faker.h rename include/faker-cxx/{Finance.h => finance.h} (98%) rename include/faker-cxx/{Food.h => food.h} (99%) rename include/faker-cxx/{Git.h => git.h} (96%) rename include/faker-cxx/{Hacker.h => hacker.h} (97%) rename include/faker-cxx/{Helper.h => helper.h} (99%) rename include/faker-cxx/{Image.h => image.h} (98%) rename include/faker-cxx/{Internet.h => internet.h} (99%) rename include/faker-cxx/{Location.h => location.h} (98%) rename include/faker-cxx/{Lorem.h => lorem.h} (99%) rename include/faker-cxx/{Medicine.h => medicine.h} (95%) rename include/faker-cxx/{Movie.h => movie.h} (97%) rename include/faker-cxx/{Music.h => music.h} (96%) rename include/faker-cxx/{Number.h => number.h} (100%) rename include/faker-cxx/{Person.h => person.h} (99%) rename include/faker-cxx/{Phone.h => phone.h} (99%) rename include/faker-cxx/{Plant.h => plant.h} (98%) rename include/faker-cxx/{RandomGenerator.h => random_generator.h} (100%) rename include/faker-cxx/{Science.h => science.h} (98%) rename include/faker-cxx/{Sport.h => sport.h} (97%) rename include/faker-cxx/{String.h => string.h} (99%) rename include/faker-cxx/{System.h => system.h} (99%) rename include/faker-cxx/types/{Country.h => country.h} (100%) rename include/faker-cxx/types/{Hex.h => hex.h} (100%) rename include/faker-cxx/types/{Precision.h => precision.h} (100%) rename include/faker-cxx/{Vehicle.h => vehicle.h} (98%) rename include/faker-cxx/{VideoGame.h => video_game.h} (97%) rename include/faker-cxx/{Weather.h => weather.h} (90%) rename include/faker-cxx/{Word.h => word.h} (99%) rename src/common/{AlgoHelper.h => algo_helper.h} (95%) rename src/common/{FormatHelper.cpp => format_helper.cpp} (99%) rename src/common/{FormatHelper.h => format_helper.h} (94%) rename src/common/{LuhnCheck.cpp => luhn_check.cpp} (97%) rename src/common/{LuhnCheck.h => luhn_check.h} (97%) rename src/common/{StringHelper.cpp => string_helper.cpp} (98%) rename src/common/{StringHelper.h => string_helper.h} (96%) rename src/modules/airline/{Airline.cpp => airline.cpp} (89%) rename src/modules/airline/{AirlineData.h => airline_data.h} (99%) rename src/modules/animal/{Animal.cpp => animal.cpp} (92%) rename src/modules/animal/{AnimalData.h => animal_data.h} (100%) rename src/modules/book/{Book.cpp => book.cpp} (86%) rename src/modules/book/{BookData.h => book_data.h} (100%) rename src/modules/color/{Color.cpp => color.cpp} (93%) rename src/modules/color/{ColorData.h => color_data.h} (100%) rename src/modules/commerce/{Commerce.cpp => commerce.cpp} (95%) rename src/modules/commerce/{CommerceData.h => commerce_data.h} (100%) rename src/modules/company/{Company.cpp => company.cpp} (90%) rename src/modules/company/{CompanyData.h => company_data.h} (100%) rename src/modules/computer/{Computer.cpp => computer.cpp} (89%) rename src/modules/computer/{ComputerData.h => computer_data.h} (100%) rename src/modules/crypto/{Crypto.cpp => crypto.cpp} (96%) rename src/modules/database/{Database.cpp => database.cpp} (76%) rename src/modules/database/{DatabaseData.h => database_data.h} (100%) rename src/modules/datatype/{Datatype.cpp => datatype.cpp} (88%) rename src/modules/date/{Date.cpp => date.cpp} (97%) rename src/modules/date/{DateData.h => date_data.h} (100%) rename src/modules/finance/{Finance.cpp => finance.cpp} (93%) rename src/modules/finance/{FinanceData.h => finance_data.h} (99%) rename src/modules/food/{Food.cpp => food.cpp} (93%) rename src/modules/food/{FoodData.h => food_data.h} (100%) rename src/modules/git/{Git.cpp => git.cpp} (82%) rename src/modules/hacker/{Hacker.cpp => hacker.cpp} (91%) rename src/modules/hacker/{HackerData.h => hacker_data.h} (100%) rename src/modules/helper/{Helper.cpp => helper.cpp} (96%) rename src/modules/image/{Image.cpp => image.cpp} (93%) rename src/modules/internet/{Internet.cpp => internet.cpp} (96%) rename src/modules/internet/{InternetData.h => internet_data.h} (100%) rename src/modules/location/{Location.cpp => location.cpp} (95%) rename src/modules/location/{LocationData.h => location_data.h} (100%) rename src/modules/lorem/{Lorem.cpp => lorem.cpp} (92%) rename src/modules/lorem/{LoremData.h => lorem_data.h} (100%) rename src/modules/medicine/{Medicine.cpp => medicine.cpp} (77%) rename src/modules/medicine/{MedicineData.h => medicine_data.h} (100%) rename src/modules/movie/{Movie.cpp => movie.cpp} (85%) rename src/modules/movie/{MovieData.h => movie_data.h} (99%) rename src/modules/music/{Music.cpp => music.cpp} (77%) rename src/modules/music/{MusicData.h => music_data.h} (100%) rename src/modules/person/{Person.cpp => person.cpp} (97%) rename src/modules/person/{PersonData.h => person_data.h} (99%) rename src/modules/phone/{Phone.cpp => phone.cpp} (94%) rename src/modules/phone/{PhoneData.h => phone_data.h} (100%) rename src/modules/plant/{Plant.cpp => plant.cpp} (88%) rename src/modules/plant/{PlantData.h => plant_data.h} (100%) rename src/modules/science/{Science.cpp => science.cpp} (91%) rename src/modules/science/{ScienceData.h => science_data.h} (99%) rename src/modules/sport/{Sport.cpp => sport.cpp} (84%) rename src/modules/sport/{SportData.h => sport_data.h} (100%) rename src/modules/string/{String.cpp => string.cpp} (98%) rename src/modules/string/{StringData.h => string_data.h} (100%) rename src/modules/system/{System.cpp => system.cpp} (95%) rename src/modules/system/{SystemData.h => system_data.h} (99%) rename src/modules/vehicle/{Vehicle.cpp => vehicle.cpp} (87%) rename src/modules/vehicle/{VehicleData.h => vehicle_data.h} (100%) rename src/modules/{videoGame/VideoGame.cpp => video_game/video_game.cpp} (86%) rename src/modules/{videoGame/VideoGameData.h => video_game/video_game_data.h} (100%) rename src/modules/weather/{Weather.cpp => weather.cpp} (63%) rename src/modules/weather/{WeatherData.h => weather_data.h} (100%) rename src/modules/word/{Word.cpp => word.cpp} (97%) rename src/modules/word/{WordData.h => word_data.h} (99%) rename src/modules/word/{WordStore.h => word_store.h} (100%) rename tests/common/{FormatHelperTest.cpp => format_helper_test.cpp} (98%) rename tests/common/{LuhnCheckTest.cpp => luhn_check_test.cpp} (94%) rename tests/common/{StringHelperTest.cpp => string_helper_test.cpp} (98%) rename tests/modules/airline/{AirlineTest.cpp => airline_test.cpp} (98%) rename tests/modules/animal/{AnimalTest.cpp => animal_test.cpp} (98%) rename tests/modules/book/{BookTest.cpp => book_test.cpp} (96%) rename tests/modules/color/{ColorTest.cpp => color_test.cpp} (98%) rename tests/modules/commerce/{CommerceTest.cpp => commerce_test.cpp} (98%) rename tests/modules/company/{CompanyTest.cpp => company_test.cpp} (98%) rename tests/modules/computer/{ComputerTest.cpp => computer_test.cpp} (98%) rename tests/modules/crypto/{CryptoTest.cpp => crypto_test.cpp} (92%) rename tests/modules/database/{DatabaseTest.cpp => database_test.cpp} (94%) rename tests/modules/datatype/{DatatypeTest.cpp => datatype_test.cpp} (96%) rename tests/modules/date/{DateTest.cpp => date_test.cpp} (99%) rename tests/modules/finance/{FinanceTest.cpp => finance_test.cpp} (98%) rename tests/modules/food/{FoodTest.cpp => food_test.cpp} (98%) rename tests/modules/git/{GitTest.cpp => git_test.cpp} (97%) rename tests/modules/hacker/{HackerTest.cpp => hacker_test.cpp} (97%) rename tests/modules/helper/{HelperTest.cpp => helper_test.cpp} (98%) rename tests/modules/image/{ImageTest.cpp => image_test.cpp} (97%) rename tests/modules/internet/{InternetTest.cpp => internet_test.cpp} (99%) rename tests/modules/location/{LocationTest.cpp => location_test.cpp} (99%) rename tests/modules/lorem/{LoremTest.cpp => lorem_test.cpp} (98%) rename tests/modules/medicine/{MedicineTest.cpp => medicine_test.cpp} (94%) rename tests/modules/movie/{MovieTest.cpp => movie_test.cpp} (96%) rename tests/modules/music/{MusicTest.cpp => music_test.cpp} (94%) rename tests/modules/number/{NumberTest.cpp => number_test.cpp} (98%) rename tests/modules/person/{PersonTest.cpp => person_test.cpp} (99%) rename tests/modules/phone/{PhoneTest.cpp => phone_test.cpp} (98%) rename tests/modules/plant/{PlantTest.cpp => plant_test.cpp} (97%) rename tests/modules/science/{ScienceTest.cpp => science_test.cpp} (97%) rename tests/modules/sport/{SportTest.cpp => sport_test.cpp} (96%) rename tests/modules/string/{StringTest.cpp => string_test.cpp} (99%) rename tests/modules/system/{SystemTest.cpp => system_test.cpp} (99%) rename tests/modules/vehicle/{VehicleTest.cpp => vehicle_test.cpp} (97%) rename tests/modules/version/{VersionTest.cpp => version_test.cpp} (90%) rename tests/modules/{videoGame/VideoGameTest.cpp => video_game/video_game_test.cpp} (94%) rename tests/modules/weather/{WeatherTest.cpp => weather_test.cpp} (90%) rename tests/modules/word/{WordTest.cpp => word_test.cpp} (98%) diff --git a/BUILD.bazel b/BUILD.bazel index 9cb022b47..f04b82ce7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -3,7 +3,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library") genrule( name = "generate_export_header", srcs = [], - outs = ["include/faker-cxx/Export.h"], + outs = ["include/faker-cxx/export.h"], cmd = """ echo "#pragma once" > $@ echo "#define FAKER_CXX_EXPORT" >> $@ @@ -13,7 +13,7 @@ genrule( genrule( name = "generate_version_header", srcs = [], - outs = ["include/faker-cxx/Version.h"], + outs = ["include/faker-cxx/version.h"], cmd = """ echo "#pragma once" > $@ echo '#define FAKER_CXX_VERSION_MAJOR 2' >> $@ diff --git a/README.md b/README.md index 9f3430272..c75bc3fb1 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Clang. To properly use Faker C++ you must first consume the Faker library (see Consuming Library with CMake). Once that is done, you need to include the proper [header](https://cieslarmichal.github.io/faker-cxx/files.html) file -depending on the module you wish to generate data from or use general include file `faker-cxx/Faker.h`. +depending on the module you wish to generate data from or use general include file `faker-cxx/faker.h`. All the docs can be found [here](https://cieslarmichal.github.io/faker-cxx/). Below is an example of how to use Faker C++ in your code. @@ -59,7 +59,7 @@ Below is an example of how to use Faker C++ in your code. ```cpp #include -#include "faker-cxx/Faker.h" // or include specific module +#include "faker-cxx/faker.h" // or include specific module int main() { diff --git a/examples/basic/main.cpp b/examples/basic/main.cpp index c3efa034b..efff0c2c8 100644 --- a/examples/basic/main.cpp +++ b/examples/basic/main.cpp @@ -1,6 +1,6 @@ #include -#include "faker-cxx/Faker.h" +#include "faker-cxx/faker.h" int main() { diff --git a/examples/person/main.cpp b/examples/person/main.cpp index 539516600..71ffdb5be 100644 --- a/examples/person/main.cpp +++ b/examples/person/main.cpp @@ -1,6 +1,6 @@ #include -#include "faker-cxx/Person.h" +#include "faker-cxx/person.h" int main() { diff --git a/include/faker-cxx/Faker.h b/include/faker-cxx/Faker.h deleted file mode 100644 index fb5df0737..000000000 --- a/include/faker-cxx/Faker.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include "faker-cxx/Export.h" -#include "faker-cxx/Airline.h" -#include "faker-cxx/Animal.h" -#include "faker-cxx/Book.h" -#include "faker-cxx/Color.h" -#include "faker-cxx/Commerce.h" -#include "faker-cxx/Company.h" -#include "faker-cxx/Computer.h" -#include "faker-cxx/Crypto.h" -#include "faker-cxx/Database.h" -#include "faker-cxx/Datatype.h" -#include "faker-cxx/Date.h" -#include "faker-cxx/Finance.h" -#include "faker-cxx/Food.h" -#include "faker-cxx/Git.h" -#include "faker-cxx/Hacker.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Image.h" -#include "faker-cxx/Internet.h" -#include "faker-cxx/Location.h" -#include "faker-cxx/Lorem.h" -#include "faker-cxx/Medicine.h" -#include "faker-cxx/Movie.h" -#include "faker-cxx/Music.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/Person.h" -#include "faker-cxx/Phone.h" -#include "faker-cxx/Plant.h" -#include "faker-cxx/RandomGenerator.h" -#include "faker-cxx/Science.h" -#include "faker-cxx/Sport.h" -#include "faker-cxx/String.h" -#include "faker-cxx/System.h" -#include "faker-cxx/Vehicle.h" -#include "faker-cxx/Version.h" -#include "faker-cxx/VideoGame.h" -#include "faker-cxx/Weather.h" -#include "faker-cxx/Word.h" diff --git a/include/faker-cxx/Airline.h b/include/faker-cxx/airline.h similarity index 99% rename from include/faker-cxx/Airline.h rename to include/faker-cxx/airline.h index facf01b4e..fb3189135 100644 --- a/include/faker-cxx/Airline.h +++ b/include/faker-cxx/airline.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::airline { diff --git a/include/faker-cxx/Animal.h b/include/faker-cxx/animal.h similarity index 99% rename from include/faker-cxx/Animal.h rename to include/faker-cxx/animal.h index dec7e2843..d7f577887 100644 --- a/include/faker-cxx/Animal.h +++ b/include/faker-cxx/animal.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::animal { diff --git a/include/faker-cxx/Book.h b/include/faker-cxx/book.h similarity index 97% rename from include/faker-cxx/Book.h rename to include/faker-cxx/book.h index be5b5d505..066040305 100644 --- a/include/faker-cxx/Book.h +++ b/include/faker-cxx/book.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::book { diff --git a/include/faker-cxx/Color.h b/include/faker-cxx/color.h similarity index 98% rename from include/faker-cxx/Color.h rename to include/faker-cxx/color.h index 5a08b6029..2a7b59528 100644 --- a/include/faker-cxx/Color.h +++ b/include/faker-cxx/color.h @@ -2,8 +2,8 @@ #include -#include "types/Hex.h" -#include "faker-cxx/Export.h" +#include "types/hex.h" +#include "faker-cxx/export.h" namespace faker::color { diff --git a/include/faker-cxx/Commerce.h b/include/faker-cxx/commerce.h similarity index 99% rename from include/faker-cxx/Commerce.h rename to include/faker-cxx/commerce.h index 2cda38c38..31b6b14b0 100644 --- a/include/faker-cxx/Commerce.h +++ b/include/faker-cxx/commerce.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::commerce { diff --git a/include/faker-cxx/Company.h b/include/faker-cxx/company.h similarity index 98% rename from include/faker-cxx/Company.h rename to include/faker-cxx/company.h index f6ed9db3f..f464ccf77 100644 --- a/include/faker-cxx/Company.h +++ b/include/faker-cxx/company.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::company { diff --git a/include/faker-cxx/Computer.h b/include/faker-cxx/computer.h similarity index 98% rename from include/faker-cxx/Computer.h rename to include/faker-cxx/computer.h index b20e289d9..7a2452bc3 100644 --- a/include/faker-cxx/Computer.h +++ b/include/faker-cxx/computer.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::computer { diff --git a/include/faker-cxx/Crypto.h b/include/faker-cxx/crypto.h similarity index 92% rename from include/faker-cxx/Crypto.h rename to include/faker-cxx/crypto.h index 960b066df..d9480ef76 100644 --- a/include/faker-cxx/Crypto.h +++ b/include/faker-cxx/crypto.h @@ -2,7 +2,7 @@ #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::crypto { diff --git a/include/faker-cxx/Database.h b/include/faker-cxx/database.h similarity index 97% rename from include/faker-cxx/Database.h rename to include/faker-cxx/database.h index 5bb273f5f..2c4870f33 100644 --- a/include/faker-cxx/Database.h +++ b/include/faker-cxx/database.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::database { diff --git a/include/faker-cxx/Datatype.h b/include/faker-cxx/datatype.h similarity index 96% rename from include/faker-cxx/Datatype.h rename to include/faker-cxx/datatype.h index 79843e6fa..f1289d917 100644 --- a/include/faker-cxx/Datatype.h +++ b/include/faker-cxx/datatype.h @@ -1,6 +1,6 @@ #pragma once -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::datatype { diff --git a/include/faker-cxx/Date.h b/include/faker-cxx/date.h similarity index 99% rename from include/faker-cxx/Date.h rename to include/faker-cxx/date.h index 7a6649cd6..3be3a390d 100644 --- a/include/faker-cxx/Date.h +++ b/include/faker-cxx/date.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::date { diff --git a/include/faker-cxx/faker.h b/include/faker-cxx/faker.h new file mode 100644 index 000000000..a9477b421 --- /dev/null +++ b/include/faker-cxx/faker.h @@ -0,0 +1,40 @@ +#pragma once + +#include "faker-cxx/export.h" +#include "faker-cxx/airline.h" +#include "faker-cxx/animal.h" +#include "faker-cxx/book.h" +#include "faker-cxx/color.h" +#include "faker-cxx/commerce.h" +#include "faker-cxx/company.h" +#include "faker-cxx/computer.h" +#include "faker-cxx/crypto.h" +#include "faker-cxx/database.h" +#include "faker-cxx/datatype.h" +#include "faker-cxx/date.h" +#include "faker-cxx/finance.h" +#include "faker-cxx/food.h" +#include "faker-cxx/git.h" +#include "faker-cxx/hacker.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/image.h" +#include "faker-cxx/internet.h" +#include "faker-cxx/location.h" +#include "faker-cxx/lorem.h" +#include "faker-cxx/medicine.h" +#include "faker-cxx/movie.h" +#include "faker-cxx/music.h" +#include "faker-cxx/number.h" +#include "faker-cxx/person.h" +#include "faker-cxx/phone.h" +#include "faker-cxx/plant.h" +#include "faker-cxx/random_generator.h" +#include "faker-cxx/science.h" +#include "faker-cxx/sport.h" +#include "faker-cxx/string.h" +#include "faker-cxx/system.h" +#include "faker-cxx/vehicle.h" +#include "faker-cxx/version.h" +#include "faker-cxx/video_game.h" +#include "faker-cxx/weather.h" +#include "faker-cxx/word.h" diff --git a/include/faker-cxx/Finance.h b/include/faker-cxx/finance.h similarity index 98% rename from include/faker-cxx/Finance.h rename to include/faker-cxx/finance.h index ddadee115..d84aa900e 100644 --- a/include/faker-cxx/Finance.h +++ b/include/faker-cxx/finance.h @@ -4,9 +4,9 @@ #include #include -#include "faker-cxx/Export.h" -#include "types/Country.h" -#include "types/Precision.h" +#include "faker-cxx/export.h" +#include "types/country.h" +#include "types/precision.h" namespace faker::finance { diff --git a/include/faker-cxx/Food.h b/include/faker-cxx/food.h similarity index 99% rename from include/faker-cxx/Food.h rename to include/faker-cxx/food.h index e4a638202..3a6e8900c 100644 --- a/include/faker-cxx/Food.h +++ b/include/faker-cxx/food.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::food { diff --git a/include/faker-cxx/Git.h b/include/faker-cxx/git.h similarity index 96% rename from include/faker-cxx/Git.h rename to include/faker-cxx/git.h index e0b4537ad..c341dedb6 100644 --- a/include/faker-cxx/Git.h +++ b/include/faker-cxx/git.h @@ -3,8 +3,8 @@ #include #include -#include "faker-cxx/Export.h" -#include "faker-cxx/types/Country.h" +#include "faker-cxx/export.h" +#include "faker-cxx/types/country.h" namespace faker::git { diff --git a/include/faker-cxx/Hacker.h b/include/faker-cxx/hacker.h similarity index 97% rename from include/faker-cxx/Hacker.h rename to include/faker-cxx/hacker.h index 1f1e58810..73fe97536 100644 --- a/include/faker-cxx/Hacker.h +++ b/include/faker-cxx/hacker.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::hacker { diff --git a/include/faker-cxx/Helper.h b/include/faker-cxx/helper.h similarity index 99% rename from include/faker-cxx/Helper.h rename to include/faker-cxx/helper.h index 80562b2ee..abf61b009 100644 --- a/include/faker-cxx/Helper.h +++ b/include/faker-cxx/helper.h @@ -5,7 +5,7 @@ #include #include -#include "Number.h" +#include "number.h" namespace faker::helper { diff --git a/include/faker-cxx/Image.h b/include/faker-cxx/image.h similarity index 98% rename from include/faker-cxx/Image.h rename to include/faker-cxx/image.h index 6632622f9..5a72f60fe 100644 --- a/include/faker-cxx/Image.h +++ b/include/faker-cxx/image.h @@ -2,7 +2,7 @@ #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::image { diff --git a/include/faker-cxx/Internet.h b/include/faker-cxx/internet.h similarity index 99% rename from include/faker-cxx/Internet.h rename to include/faker-cxx/internet.h index 9139d16c5..34d96723a 100644 --- a/include/faker-cxx/Internet.h +++ b/include/faker-cxx/internet.h @@ -5,8 +5,8 @@ #include #include -#include "faker-cxx/Export.h" -#include "types/Country.h" +#include "faker-cxx/export.h" +#include "types/country.h" namespace faker::internet { diff --git a/include/faker-cxx/Location.h b/include/faker-cxx/location.h similarity index 98% rename from include/faker-cxx/Location.h rename to include/faker-cxx/location.h index 1834bd77a..83b40bf47 100644 --- a/include/faker-cxx/Location.h +++ b/include/faker-cxx/location.h @@ -2,8 +2,8 @@ #include -#include "faker-cxx/Export.h" -#include "types/Precision.h" +#include "faker-cxx/export.h" +#include "types/precision.h" namespace faker::location { diff --git a/include/faker-cxx/Lorem.h b/include/faker-cxx/lorem.h similarity index 99% rename from include/faker-cxx/Lorem.h rename to include/faker-cxx/lorem.h index ae8a2608d..98e235def 100644 --- a/include/faker-cxx/Lorem.h +++ b/include/faker-cxx/lorem.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::lorem { diff --git a/include/faker-cxx/Medicine.h b/include/faker-cxx/medicine.h similarity index 95% rename from include/faker-cxx/Medicine.h rename to include/faker-cxx/medicine.h index ee0a7ed8c..7461e4acc 100644 --- a/include/faker-cxx/Medicine.h +++ b/include/faker-cxx/medicine.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::medicine { diff --git a/include/faker-cxx/Movie.h b/include/faker-cxx/movie.h similarity index 97% rename from include/faker-cxx/Movie.h rename to include/faker-cxx/movie.h index cfe0f0d8d..ccd4847a6 100644 --- a/include/faker-cxx/Movie.h +++ b/include/faker-cxx/movie.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::movie { diff --git a/include/faker-cxx/Music.h b/include/faker-cxx/music.h similarity index 96% rename from include/faker-cxx/Music.h rename to include/faker-cxx/music.h index b153dd31e..a20836f57 100644 --- a/include/faker-cxx/Music.h +++ b/include/faker-cxx/music.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::music { diff --git a/include/faker-cxx/Number.h b/include/faker-cxx/number.h similarity index 100% rename from include/faker-cxx/Number.h rename to include/faker-cxx/number.h diff --git a/include/faker-cxx/Person.h b/include/faker-cxx/person.h similarity index 99% rename from include/faker-cxx/Person.h rename to include/faker-cxx/person.h index bf054d3c6..38971d489 100644 --- a/include/faker-cxx/Person.h +++ b/include/faker-cxx/person.h @@ -3,8 +3,8 @@ #include #include -#include "faker-cxx/Export.h" -#include "types/Country.h" +#include "faker-cxx/export.h" +#include "types/country.h" namespace faker::person { diff --git a/include/faker-cxx/Phone.h b/include/faker-cxx/phone.h similarity index 99% rename from include/faker-cxx/Phone.h rename to include/faker-cxx/phone.h index 49543e731..4c063d8a0 100644 --- a/include/faker-cxx/Phone.h +++ b/include/faker-cxx/phone.h @@ -4,7 +4,7 @@ #include #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::phone { diff --git a/include/faker-cxx/Plant.h b/include/faker-cxx/plant.h similarity index 98% rename from include/faker-cxx/Plant.h rename to include/faker-cxx/plant.h index 660f7fe34..748d9fafb 100644 --- a/include/faker-cxx/Plant.h +++ b/include/faker-cxx/plant.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::plant { diff --git a/include/faker-cxx/RandomGenerator.h b/include/faker-cxx/random_generator.h similarity index 100% rename from include/faker-cxx/RandomGenerator.h rename to include/faker-cxx/random_generator.h diff --git a/include/faker-cxx/Science.h b/include/faker-cxx/science.h similarity index 98% rename from include/faker-cxx/Science.h rename to include/faker-cxx/science.h index 4d081cae0..c65453b9a 100644 --- a/include/faker-cxx/Science.h +++ b/include/faker-cxx/science.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::science { diff --git a/include/faker-cxx/Sport.h b/include/faker-cxx/sport.h similarity index 97% rename from include/faker-cxx/Sport.h rename to include/faker-cxx/sport.h index eb59eecc7..53088a1cf 100644 --- a/include/faker-cxx/Sport.h +++ b/include/faker-cxx/sport.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::sport { diff --git a/include/faker-cxx/String.h b/include/faker-cxx/string.h similarity index 99% rename from include/faker-cxx/String.h rename to include/faker-cxx/string.h index 9fb897a17..2099608f0 100644 --- a/include/faker-cxx/String.h +++ b/include/faker-cxx/string.h @@ -7,9 +7,9 @@ #include #include -#include "faker-cxx/Export.h" -#include "RandomGenerator.h" -#include "types/Hex.h" +#include "faker-cxx/export.h" +#include "random_generator.h" +#include "types/hex.h" namespace faker::string { diff --git a/include/faker-cxx/System.h b/include/faker-cxx/system.h similarity index 99% rename from include/faker-cxx/System.h rename to include/faker-cxx/system.h index 2907c4fd3..9443eae7d 100644 --- a/include/faker-cxx/System.h +++ b/include/faker-cxx/system.h @@ -3,7 +3,7 @@ #include #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::system { diff --git a/include/faker-cxx/types/Country.h b/include/faker-cxx/types/country.h similarity index 100% rename from include/faker-cxx/types/Country.h rename to include/faker-cxx/types/country.h diff --git a/include/faker-cxx/types/Hex.h b/include/faker-cxx/types/hex.h similarity index 100% rename from include/faker-cxx/types/Hex.h rename to include/faker-cxx/types/hex.h diff --git a/include/faker-cxx/types/Precision.h b/include/faker-cxx/types/precision.h similarity index 100% rename from include/faker-cxx/types/Precision.h rename to include/faker-cxx/types/precision.h diff --git a/include/faker-cxx/Vehicle.h b/include/faker-cxx/vehicle.h similarity index 98% rename from include/faker-cxx/Vehicle.h rename to include/faker-cxx/vehicle.h index ccbe6a4c1..9d6f551c5 100644 --- a/include/faker-cxx/Vehicle.h +++ b/include/faker-cxx/vehicle.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::vehicle { diff --git a/include/faker-cxx/VideoGame.h b/include/faker-cxx/video_game.h similarity index 97% rename from include/faker-cxx/VideoGame.h rename to include/faker-cxx/video_game.h index 56f99b1be..5763a1b39 100644 --- a/include/faker-cxx/VideoGame.h +++ b/include/faker-cxx/video_game.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::videogame diff --git a/include/faker-cxx/Weather.h b/include/faker-cxx/weather.h similarity index 90% rename from include/faker-cxx/Weather.h rename to include/faker-cxx/weather.h index 661d2047c..749864fde 100644 --- a/include/faker-cxx/Weather.h +++ b/include/faker-cxx/weather.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::weather { diff --git a/include/faker-cxx/Word.h b/include/faker-cxx/word.h similarity index 99% rename from include/faker-cxx/Word.h rename to include/faker-cxx/word.h index a9b8e6bb8..a4f8d4f86 100644 --- a/include/faker-cxx/Word.h +++ b/include/faker-cxx/word.h @@ -3,7 +3,7 @@ #include #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::word { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 979169130..d750f4047 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,80 +3,80 @@ cmake_minimum_required(VERSION 3.22) include("${CMAKE_SOURCE_DIR}/cmake/CompilerWarnings.cmake") set(FAKER_SOURCES - modules/airline/Airline.cpp - modules/animal/Animal.cpp - modules/book/Book.cpp - modules/color/Color.cpp - modules/commerce/Commerce.cpp - modules/company/Company.cpp - modules/computer/Computer.cpp - modules/crypto/Crypto.cpp - modules/database/Database.cpp - modules/datatype/Datatype.cpp - modules/date/Date.cpp - modules/finance/Finance.cpp - modules/food/Food.cpp - modules/git/Git.cpp - modules/hacker/Hacker.cpp - modules/helper/Helper.cpp - modules/image/Image.cpp - modules/internet/Internet.cpp - modules/location/Location.cpp - modules/lorem/Lorem.cpp - modules/medicine/Medicine.cpp - modules/movie/Movie.cpp - modules/music/Music.cpp - modules/person/Person.cpp - modules/phone/Phone.cpp - modules/plant/Plant.cpp - modules/science/Science.cpp - modules/sport/Sport.cpp - modules/string/String.cpp - modules/system/System.cpp - modules/vehicle/Vehicle.cpp - modules/videoGame/VideoGame.cpp - modules/weather/Weather.cpp - modules/word/Word.cpp - common/FormatHelper.cpp - common/LuhnCheck.cpp - common/StringHelper.cpp + modules/airline/airline.cpp + modules/animal/animal.cpp + modules/book/book.cpp + modules/color/color.cpp + modules/commerce/commerce.cpp + modules/company/company.cpp + modules/computer/computer.cpp + modules/crypto/crypto.cpp + modules/database/database.cpp + modules/datatype/datatype.cpp + modules/date/date.cpp + modules/finance/finance.cpp + modules/food/food.cpp + modules/git/git.cpp + modules/hacker/hacker.cpp + modules/helper/helper.cpp + modules/image/image.cpp + modules/internet/internet.cpp + modules/location/location.cpp + modules/lorem/lorem.cpp + modules/medicine/medicine.cpp + modules/movie/movie.cpp + modules/music/music.cpp + modules/person/person.cpp + modules/phone/phone.cpp + modules/plant/plant.cpp + modules/science/science.cpp + modules/sport/sport.cpp + modules/string/string.cpp + modules/system/system.cpp + modules/vehicle/vehicle.cpp + modules/video_game/video_game.cpp + modules/weather/weather.cpp + modules/word/word.cpp + common/format_helper.cpp + common/luhn_check.cpp + common/string_helper.cpp ) set(FAKER_HEADERS - common/LuhnCheck.h - common/FormatHelper.h - common/AlgoHelper.h - common/StringHelper.h - modules/plant/PlantData.h - modules/person/PersonData.h - modules/internet/InternetData.h - modules/sport/SportData.h - modules/airline/AirlineData.h - modules/location/LocationData.h - modules/book/BookData.h - modules/string/StringData.h - modules/videoGame/VideoGameData.h - modules/medicine/MedicineData.h - modules/vehicle/VehicleData.h - modules/hacker/HackerData.h - modules/science/ScienceData.h - modules/date/DateData.h - modules/system/SystemData.h - modules/commerce/CommerceData.h - modules/computer/ComputerData.h - modules/weather/WeatherData.h - modules/music/MusicData.h - modules/database/DatabaseData.h - modules/movie/MovieData.h - modules/food/FoodData.h - modules/word/WordData.h - modules/word/WordStore.h - modules/animal/AnimalData.h - modules/company/CompanyData.h - modules/finance/FinanceData.h - modules/phone/PhoneData.h - modules/color/ColorData.h - modules/lorem/LoremData.h + common/luhn_check.h + common/format_helper.h + common/algo_helper.h + common/string_helper.h + modules/plant/plant_data.h + modules/person/person_data.h + modules/internet/internet_data.h + modules/sport/sport_data.h + modules/airline/airline_data.h + modules/location/location_data.h + modules/book/book_data.h + modules/string/string_data.h + modules/video_game/video_game_data.h + modules/medicine/medicine_data.h + modules/vehicle/vehicle_data.h + modules/hacker/hacker_data.h + modules/science/science_data.h + modules/date/date_data.h + modules/system/system_data.h + modules/commerce/commerce_data.h + modules/computer/computer_data.h + modules/weather/weather_data.h + modules/music/music_data.h + modules/database/database_data.h + modules/movie/movie_data.h + modules/food/food_data.h + modules/word/word_data.h + modules/word/word_store.h + modules/animal/animal_data.h + modules/company/company_data.h + modules/finance/finance_data.h + modules/phone/phone_data.h + modules/color/color_data.h + modules/lorem/lorem_data.h ) target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${FAKER_SOURCES} ${FAKER_HEADERS}) @@ -105,14 +105,14 @@ configure_compiler_warnings(${CMAKE_PROJECT_NAME} configure_file( "${CMAKE_SOURCE_DIR}/cmake/Version.h.in" - "${CMAKE_BINARY_DIR}/include/faker-cxx/Version.h" + "${CMAKE_BINARY_DIR}/include/faker-cxx/version.h" @ONLY ) include(GenerateExportHeader) generate_export_header(${CMAKE_PROJECT_NAME} BASE_NAME FAKER_CXX - EXPORT_FILE_NAME ${CMAKE_BINARY_DIR}/include/faker-cxx/Export.h + EXPORT_FILE_NAME ${CMAKE_BINARY_DIR}/include/faker-cxx/export.h ) set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden diff --git a/src/common/AlgoHelper.h b/src/common/algo_helper.h similarity index 95% rename from src/common/AlgoHelper.h rename to src/common/algo_helper.h index 4fa928b11..f8db62dea 100644 --- a/src/common/AlgoHelper.h +++ b/src/common/algo_helper.h @@ -8,9 +8,9 @@ #include #include -#include "faker-cxx/Datatype.h" -#include "faker-cxx/Export.h" -#include "faker-cxx/Helper.h" +#include "faker-cxx/datatype.h" +#include "faker-cxx/export.h" +#include "faker-cxx/helper.h" namespace faker::helper { diff --git a/src/common/FormatHelper.cpp b/src/common/format_helper.cpp similarity index 99% rename from src/common/FormatHelper.cpp rename to src/common/format_helper.cpp index 35d38c54d..ef1177929 100644 --- a/src/common/FormatHelper.cpp +++ b/src/common/format_helper.cpp @@ -1,4 +1,4 @@ -#include "FormatHelper.h" +#include "format_helper.h" #include #include diff --git a/src/common/FormatHelper.h b/src/common/format_helper.h similarity index 94% rename from src/common/FormatHelper.h rename to src/common/format_helper.h index 6b77f1816..143114b63 100644 --- a/src/common/FormatHelper.h +++ b/src/common/format_helper.h @@ -5,8 +5,8 @@ #include #include -#include "faker-cxx/types/Precision.h" -#include "faker-cxx/Export.h" +#include "faker-cxx/types/precision.h" +#include "faker-cxx/export.h" #if !defined(USE_STD_FORMAT) #include diff --git a/src/common/LuhnCheck.cpp b/src/common/luhn_check.cpp similarity index 97% rename from src/common/LuhnCheck.cpp rename to src/common/luhn_check.cpp index 46d6d7a6e..d14e23812 100644 --- a/src/common/LuhnCheck.cpp +++ b/src/common/luhn_check.cpp @@ -1,4 +1,4 @@ -#include "LuhnCheck.h" +#include "luhn_check.h" #include #include diff --git a/src/common/LuhnCheck.h b/src/common/luhn_check.h similarity index 97% rename from src/common/LuhnCheck.h rename to src/common/luhn_check.h index d9892964a..44c7ec662 100644 --- a/src/common/LuhnCheck.h +++ b/src/common/luhn_check.h @@ -1,7 +1,7 @@ #pragma once #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::common { diff --git a/src/common/StringHelper.cpp b/src/common/string_helper.cpp similarity index 98% rename from src/common/StringHelper.cpp rename to src/common/string_helper.cpp index 6590e4b2a..eec9a4a58 100644 --- a/src/common/StringHelper.cpp +++ b/src/common/string_helper.cpp @@ -1,4 +1,4 @@ -#include "StringHelper.h" +#include "string_helper.h" #include #include diff --git a/src/common/StringHelper.h b/src/common/string_helper.h similarity index 96% rename from src/common/StringHelper.h rename to src/common/string_helper.h index c3585c709..1b84f6965 100644 --- a/src/common/StringHelper.h +++ b/src/common/string_helper.h @@ -4,7 +4,7 @@ #include #include -#include "faker-cxx/Export.h" +#include "faker-cxx/export.h" namespace faker::common { diff --git a/src/modules/airline/Airline.cpp b/src/modules/airline/airline.cpp similarity index 89% rename from src/modules/airline/Airline.cpp rename to src/modules/airline/airline.cpp index 700c08442..62a03c16c 100644 --- a/src/modules/airline/Airline.cpp +++ b/src/modules/airline/airline.cpp @@ -1,12 +1,12 @@ -#include "faker-cxx/Airline.h" +#include "faker-cxx/airline.h" #include #include -#include "AirlineData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" +#include "airline_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" namespace faker::airline { diff --git a/src/modules/airline/AirlineData.h b/src/modules/airline/airline_data.h similarity index 99% rename from src/modules/airline/AirlineData.h rename to src/modules/airline/airline_data.h index 5db5e504b..6d6af110d 100644 --- a/src/modules/airline/AirlineData.h +++ b/src/modules/airline/airline_data.h @@ -4,7 +4,7 @@ #include #include -#include "faker-cxx/Airline.h" +#include "faker-cxx/airline.h" namespace faker::airline { diff --git a/src/modules/animal/Animal.cpp b/src/modules/animal/animal.cpp similarity index 92% rename from src/modules/animal/Animal.cpp rename to src/modules/animal/animal.cpp index a92c9f28c..b834365c7 100644 --- a/src/modules/animal/Animal.cpp +++ b/src/modules/animal/animal.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Animal.h" +#include "faker-cxx/animal.h" #include -#include "AnimalData.h" -#include "faker-cxx/Helper.h" +#include "animal_data.h" +#include "faker-cxx/helper.h" namespace faker::animal { diff --git a/src/modules/animal/AnimalData.h b/src/modules/animal/animal_data.h similarity index 100% rename from src/modules/animal/AnimalData.h rename to src/modules/animal/animal_data.h diff --git a/src/modules/book/Book.cpp b/src/modules/book/book.cpp similarity index 86% rename from src/modules/book/Book.cpp rename to src/modules/book/book.cpp index b1c77a731..58b0aebbc 100644 --- a/src/modules/book/Book.cpp +++ b/src/modules/book/book.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Book.h" +#include "faker-cxx/book.h" #include -#include "BookData.h" -#include "faker-cxx/Helper.h" +#include "book_data.h" +#include "faker-cxx/helper.h" namespace faker::book { diff --git a/src/modules/book/BookData.h b/src/modules/book/book_data.h similarity index 100% rename from src/modules/book/BookData.h rename to src/modules/book/book_data.h diff --git a/src/modules/color/Color.cpp b/src/modules/color/color.cpp similarity index 93% rename from src/modules/color/Color.cpp rename to src/modules/color/color.cpp index 26004751e..4c3a7f47f 100644 --- a/src/modules/color/Color.cpp +++ b/src/modules/color/color.cpp @@ -1,14 +1,14 @@ -#include "faker-cxx/Color.h" +#include "faker-cxx/color.h" #include #include -#include "common/FormatHelper.h" -#include "ColorData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Hex.h" +#include "common/format_helper.h" +#include "color_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/hex.h" namespace faker::color { diff --git a/src/modules/color/ColorData.h b/src/modules/color/color_data.h similarity index 100% rename from src/modules/color/ColorData.h rename to src/modules/color/color_data.h diff --git a/src/modules/commerce/Commerce.cpp b/src/modules/commerce/commerce.cpp similarity index 95% rename from src/modules/commerce/Commerce.cpp rename to src/modules/commerce/commerce.cpp index 3048ea474..dc1aa9dc3 100644 --- a/src/modules/commerce/Commerce.cpp +++ b/src/modules/commerce/commerce.cpp @@ -1,12 +1,12 @@ -#include "faker-cxx/Commerce.h" +#include "faker-cxx/commerce.h" #include #include -#include "common/FormatHelper.h" -#include "CommerceData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/String.h" +#include "common/format_helper.h" +#include "commerce_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/string.h" namespace faker::commerce { diff --git a/src/modules/commerce/CommerceData.h b/src/modules/commerce/commerce_data.h similarity index 100% rename from src/modules/commerce/CommerceData.h rename to src/modules/commerce/commerce_data.h diff --git a/src/modules/company/Company.cpp b/src/modules/company/company.cpp similarity index 90% rename from src/modules/company/Company.cpp rename to src/modules/company/company.cpp index d4f6a8311..97f17f8a5 100644 --- a/src/modules/company/Company.cpp +++ b/src/modules/company/company.cpp @@ -1,13 +1,13 @@ -#include "faker-cxx/Company.h" +#include "faker-cxx/company.h" #include #include -#include "common/FormatHelper.h" -#include "CompanyData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/Person.h" +#include "common/format_helper.h" +#include "company_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/person.h" namespace faker::company { diff --git a/src/modules/company/CompanyData.h b/src/modules/company/company_data.h similarity index 100% rename from src/modules/company/CompanyData.h rename to src/modules/company/company_data.h diff --git a/src/modules/computer/Computer.cpp b/src/modules/computer/computer.cpp similarity index 89% rename from src/modules/computer/Computer.cpp rename to src/modules/computer/computer.cpp index 592e1acee..75aa2c6e3 100644 --- a/src/modules/computer/Computer.cpp +++ b/src/modules/computer/computer.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Computer.h" +#include "faker-cxx/computer.h" #include -#include "ComputerData.h" -#include "faker-cxx/Helper.h" +#include "computer_data.h" +#include "faker-cxx/helper.h" namespace faker::computer { diff --git a/src/modules/computer/ComputerData.h b/src/modules/computer/computer_data.h similarity index 100% rename from src/modules/computer/ComputerData.h rename to src/modules/computer/computer_data.h diff --git a/src/modules/crypto/Crypto.cpp b/src/modules/crypto/crypto.cpp similarity index 96% rename from src/modules/crypto/Crypto.cpp rename to src/modules/crypto/crypto.cpp index 28301a5b3..22dd55290 100644 --- a/src/modules/crypto/Crypto.cpp +++ b/src/modules/crypto/crypto.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Crypto.h" +#include "faker-cxx/crypto.h" #include #include @@ -6,7 +6,7 @@ #include #include -#include "faker-cxx/Word.h" +#include "faker-cxx/word.h" namespace faker::crypto { diff --git a/src/modules/database/Database.cpp b/src/modules/database/database.cpp similarity index 76% rename from src/modules/database/Database.cpp rename to src/modules/database/database.cpp index 440a04f4b..c2576b7ad 100644 --- a/src/modules/database/Database.cpp +++ b/src/modules/database/database.cpp @@ -1,12 +1,12 @@ -#include "faker-cxx/Database.h" +#include "faker-cxx/database.h" #include #include -#include "DatabaseData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Hex.h" +#include "database_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/hex.h" namespace faker::database { diff --git a/src/modules/database/DatabaseData.h b/src/modules/database/database_data.h similarity index 100% rename from src/modules/database/DatabaseData.h rename to src/modules/database/database_data.h diff --git a/src/modules/datatype/Datatype.cpp b/src/modules/datatype/datatype.cpp similarity index 88% rename from src/modules/datatype/Datatype.cpp rename to src/modules/datatype/datatype.cpp index f2c6f33a8..1558948c5 100644 --- a/src/modules/datatype/Datatype.cpp +++ b/src/modules/datatype/datatype.cpp @@ -1,8 +1,8 @@ -#include "faker-cxx/Datatype.h" +#include "faker-cxx/datatype.h" #include -#include "faker-cxx/Number.h" +#include "faker-cxx/number.h" namespace faker::datatype { diff --git a/src/modules/date/Date.cpp b/src/modules/date/date.cpp similarity index 97% rename from src/modules/date/Date.cpp rename to src/modules/date/date.cpp index b646aafb8..2c29c126a 100644 --- a/src/modules/date/Date.cpp +++ b/src/modules/date/date.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Date.h" +#include "faker-cxx/date.h" #include #include @@ -8,10 +8,10 @@ #include #include -#include "common/FormatHelper.h" -#include "DateData.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" +#include "common/format_helper.h" +#include "date_data.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" namespace faker::date { diff --git a/src/modules/date/DateData.h b/src/modules/date/date_data.h similarity index 100% rename from src/modules/date/DateData.h rename to src/modules/date/date_data.h diff --git a/src/modules/finance/Finance.cpp b/src/modules/finance/finance.cpp similarity index 93% rename from src/modules/finance/Finance.cpp rename to src/modules/finance/finance.cpp index 3d053d203..e96a5e90d 100644 --- a/src/modules/finance/Finance.cpp +++ b/src/modules/finance/finance.cpp @@ -1,19 +1,19 @@ -#include "faker-cxx/Finance.h" +#include "faker-cxx/finance.h" #include #include #include #include -#include "common/AlgoHelper.h" -#include "common/FormatHelper.h" -#include "faker-cxx/Date.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Hex.h" -#include "faker-cxx/types/Precision.h" -#include "FinanceData.h" +#include "common/algo_helper.h" +#include "common/format_helper.h" +#include "faker-cxx/date.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/hex.h" +#include "faker-cxx/types/precision.h" +#include "finance_data.h" namespace faker::finance { diff --git a/src/modules/finance/FinanceData.h b/src/modules/finance/finance_data.h similarity index 99% rename from src/modules/finance/FinanceData.h rename to src/modules/finance/finance_data.h index 12ac918a0..cec01ad17 100644 --- a/src/modules/finance/FinanceData.h +++ b/src/modules/finance/finance_data.h @@ -5,7 +5,7 @@ #include #include -#include "faker-cxx/Finance.h" +#include "faker-cxx/finance.h" namespace faker::finance { diff --git a/src/modules/food/Food.cpp b/src/modules/food/food.cpp similarity index 93% rename from src/modules/food/Food.cpp rename to src/modules/food/food.cpp index 305ca4ce4..cc136f2c6 100644 --- a/src/modules/food/Food.cpp +++ b/src/modules/food/food.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Food.h" +#include "faker-cxx/food.h" #include -#include "faker-cxx/Helper.h" -#include "FoodData.h" +#include "faker-cxx/helper.h" +#include "food_data.h" namespace faker::food { diff --git a/src/modules/food/FoodData.h b/src/modules/food/food_data.h similarity index 100% rename from src/modules/food/FoodData.h rename to src/modules/food/food_data.h diff --git a/src/modules/git/Git.cpp b/src/modules/git/git.cpp similarity index 82% rename from src/modules/git/Git.cpp rename to src/modules/git/git.cpp index c7ffd698e..566195d10 100644 --- a/src/modules/git/Git.cpp +++ b/src/modules/git/git.cpp @@ -1,19 +1,19 @@ -#include "faker-cxx/Git.h" +#include "faker-cxx/git.h" #include #include -#include "common/FormatHelper.h" -#include "common/StringHelper.h" -#include "../date/DateData.h" -#include "faker-cxx/Date.h" -#include "faker-cxx/Internet.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/Person.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Country.h" -#include "faker-cxx/types/Hex.h" -#include "faker-cxx/Word.h" +#include "common/format_helper.h" +#include "common/string_helper.h" +#include "../date/date_data.h" +#include "faker-cxx/date.h" +#include "faker-cxx/internet.h" +#include "faker-cxx/number.h" +#include "faker-cxx/person.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/country.h" +#include "faker-cxx/types/hex.h" +#include "faker-cxx/word.h" namespace faker::git { diff --git a/src/modules/hacker/Hacker.cpp b/src/modules/hacker/hacker.cpp similarity index 91% rename from src/modules/hacker/Hacker.cpp rename to src/modules/hacker/hacker.cpp index 24350cc52..f41dbcd05 100644 --- a/src/modules/hacker/Hacker.cpp +++ b/src/modules/hacker/hacker.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Hacker.h" +#include "faker-cxx/hacker.h" #include #include -#include "common/StringHelper.h" -#include "faker-cxx/Helper.h" -#include "HackerData.h" +#include "common/string_helper.h" +#include "faker-cxx/helper.h" +#include "hacker_data.h" namespace faker::hacker { diff --git a/src/modules/hacker/HackerData.h b/src/modules/hacker/hacker_data.h similarity index 100% rename from src/modules/hacker/HackerData.h rename to src/modules/hacker/hacker_data.h diff --git a/src/modules/helper/Helper.cpp b/src/modules/helper/helper.cpp similarity index 96% rename from src/modules/helper/Helper.cpp rename to src/modules/helper/helper.cpp index bc60e0f3a..bf55b2c8d 100644 --- a/src/modules/helper/Helper.cpp +++ b/src/modules/helper/helper.cpp @@ -4,10 +4,10 @@ #include #include -#include "common/LuhnCheck.h" -#include "common/StringHelper.h" -#include "common/AlgoHelper.h" -#include "faker-cxx/Number.h" +#include "common/luhn_check.h" +#include "common/string_helper.h" +#include "common/algo_helper.h" +#include "faker-cxx/number.h" namespace faker::helper { diff --git a/src/modules/image/Image.cpp b/src/modules/image/image.cpp similarity index 93% rename from src/modules/image/Image.cpp rename to src/modules/image/image.cpp index 408366119..050739c58 100644 --- a/src/modules/image/Image.cpp +++ b/src/modules/image/image.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Image.h" +#include "faker-cxx/image.h" #include #include @@ -6,9 +6,9 @@ #include #include -#include "common/FormatHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" +#include "common/format_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" namespace faker::image { diff --git a/src/modules/internet/Internet.cpp b/src/modules/internet/internet.cpp similarity index 96% rename from src/modules/internet/Internet.cpp rename to src/modules/internet/internet.cpp index 94c8229bf..4ea32f5e1 100644 --- a/src/modules/internet/Internet.cpp +++ b/src/modules/internet/internet.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Internet.h" +#include "faker-cxx/internet.h" #include #include @@ -11,18 +11,18 @@ #include #include -#include "common/AlgoHelper.h" -#include "common/FormatHelper.h" -#include "common/StringHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/Person.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Country.h" -#include "faker-cxx/types/Hex.h" -#include "faker-cxx/Word.h" -#include "InternetData.h" -#include "modules/string/StringData.h" +#include "common/algo_helper.h" +#include "common/format_helper.h" +#include "common/string_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/person.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/country.h" +#include "faker-cxx/types/hex.h" +#include "faker-cxx/word.h" +#include "internet_data.h" +#include "modules/string/string_data.h" namespace faker::internet { diff --git a/src/modules/internet/InternetData.h b/src/modules/internet/internet_data.h similarity index 100% rename from src/modules/internet/InternetData.h rename to src/modules/internet/internet_data.h diff --git a/src/modules/location/Location.cpp b/src/modules/location/location.cpp similarity index 95% rename from src/modules/location/Location.cpp rename to src/modules/location/location.cpp index c5aa20ece..7c280bc9c 100644 --- a/src/modules/location/Location.cpp +++ b/src/modules/location/location.cpp @@ -1,17 +1,17 @@ -#include "faker-cxx/Location.h" +#include "faker-cxx/location.h" #include #include #include -#include "common/FormatHelper.h" -#include "common/AlgoHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/Person.h" -#include "faker-cxx/types/Country.h" -#include "faker-cxx/types/Precision.h" -#include "LocationData.h" +#include "common/format_helper.h" +#include "common/algo_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/person.h" +#include "faker-cxx/types/country.h" +#include "faker-cxx/types/precision.h" +#include "location_data.h" namespace faker::location { diff --git a/src/modules/location/LocationData.h b/src/modules/location/location_data.h similarity index 100% rename from src/modules/location/LocationData.h rename to src/modules/location/location_data.h diff --git a/src/modules/lorem/Lorem.cpp b/src/modules/lorem/lorem.cpp similarity index 92% rename from src/modules/lorem/Lorem.cpp rename to src/modules/lorem/lorem.cpp index fee8aa20a..631940c1a 100644 --- a/src/modules/lorem/Lorem.cpp +++ b/src/modules/lorem/lorem.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Lorem.h" +#include "faker-cxx/lorem.h" #include #include @@ -7,11 +7,11 @@ #include #include -#include "common/FormatHelper.h" -#include "common/StringHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "LoremData.h" +#include "common/format_helper.h" +#include "common/string_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "lorem_data.h" namespace faker::lorem { diff --git a/src/modules/lorem/LoremData.h b/src/modules/lorem/lorem_data.h similarity index 100% rename from src/modules/lorem/LoremData.h rename to src/modules/lorem/lorem_data.h diff --git a/src/modules/medicine/Medicine.cpp b/src/modules/medicine/medicine.cpp similarity index 77% rename from src/modules/medicine/Medicine.cpp rename to src/modules/medicine/medicine.cpp index d98130f33..f391005ab 100644 --- a/src/modules/medicine/Medicine.cpp +++ b/src/modules/medicine/medicine.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Medicine.h" +#include "faker-cxx/medicine.h" #include -#include "faker-cxx/Helper.h" -#include "MedicineData.h" +#include "faker-cxx/helper.h" +#include "medicine_data.h" namespace faker::medicine { diff --git a/src/modules/medicine/MedicineData.h b/src/modules/medicine/medicine_data.h similarity index 100% rename from src/modules/medicine/MedicineData.h rename to src/modules/medicine/medicine_data.h diff --git a/src/modules/movie/Movie.cpp b/src/modules/movie/movie.cpp similarity index 85% rename from src/modules/movie/Movie.cpp rename to src/modules/movie/movie.cpp index 9ebacf0cb..cc62805ed 100644 --- a/src/modules/movie/Movie.cpp +++ b/src/modules/movie/movie.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Movie.h" +#include "faker-cxx/movie.h" #include -#include "faker-cxx/Helper.h" -#include "MovieData.h" +#include "faker-cxx/helper.h" +#include "movie_data.h" namespace faker::movie { diff --git a/src/modules/movie/MovieData.h b/src/modules/movie/movie_data.h similarity index 99% rename from src/modules/movie/MovieData.h rename to src/modules/movie/movie_data.h index bf40d0210..aebf7c3cb 100644 --- a/src/modules/movie/MovieData.h +++ b/src/modules/movie/movie_data.h @@ -3,7 +3,7 @@ #include #include -#include "faker-cxx/Movie.h" +#include "faker-cxx/movie.h" namespace faker::movie { diff --git a/src/modules/music/Music.cpp b/src/modules/music/music.cpp similarity index 77% rename from src/modules/music/Music.cpp rename to src/modules/music/music.cpp index 5f932226b..cfcbf4622 100644 --- a/src/modules/music/Music.cpp +++ b/src/modules/music/music.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Music.h" +#include "faker-cxx/music.h" #include -#include "faker-cxx/Helper.h" -#include "MusicData.h" +#include "faker-cxx/helper.h" +#include "music_data.h" namespace faker::music { diff --git a/src/modules/music/MusicData.h b/src/modules/music/music_data.h similarity index 100% rename from src/modules/music/MusicData.h rename to src/modules/music/music_data.h diff --git a/src/modules/person/Person.cpp b/src/modules/person/person.cpp similarity index 97% rename from src/modules/person/Person.cpp rename to src/modules/person/person.cpp index 1365f87ae..fdb8f4b7e 100644 --- a/src/modules/person/Person.cpp +++ b/src/modules/person/person.cpp @@ -1,19 +1,19 @@ -#include "faker-cxx/Person.h" +#include "faker-cxx/person.h" #include #include #include #include -#include "common/FormatHelper.h" -#include "common/AlgoHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Internet.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" -#include "faker-cxx/types/Country.h" -#include "faker-cxx/Word.h" -#include "PersonData.h" +#include "common/format_helper.h" +#include "common/algo_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/internet.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" +#include "faker-cxx/types/country.h" +#include "faker-cxx/word.h" +#include "person_data.h" namespace faker::person { diff --git a/src/modules/person/PersonData.h b/src/modules/person/person_data.h similarity index 99% rename from src/modules/person/PersonData.h rename to src/modules/person/person_data.h index e0bea59ac..40285d694 100644 --- a/src/modules/person/PersonData.h +++ b/src/modules/person/person_data.h @@ -6,7 +6,7 @@ #include #include -#include "faker-cxx/Person.h" +#include "faker-cxx/person.h" namespace faker::person { diff --git a/src/modules/phone/Phone.cpp b/src/modules/phone/phone.cpp similarity index 94% rename from src/modules/phone/Phone.cpp rename to src/modules/phone/phone.cpp index 0851a8c8b..7beaf99f4 100644 --- a/src/modules/phone/Phone.cpp +++ b/src/modules/phone/phone.cpp @@ -1,13 +1,13 @@ -#include "faker-cxx/Phone.h" +#include "faker-cxx/phone.h" #include #include #include #include -#include "common/AlgoHelper.h" -#include "faker-cxx/Helper.h" -#include "PhoneData.h" +#include "common/algo_helper.h" +#include "faker-cxx/helper.h" +#include "phone_data.h" namespace faker::phone { diff --git a/src/modules/phone/PhoneData.h b/src/modules/phone/phone_data.h similarity index 100% rename from src/modules/phone/PhoneData.h rename to src/modules/phone/phone_data.h diff --git a/src/modules/plant/Plant.cpp b/src/modules/plant/plant.cpp similarity index 88% rename from src/modules/plant/Plant.cpp rename to src/modules/plant/plant.cpp index 304452f7e..387c4f777 100644 --- a/src/modules/plant/Plant.cpp +++ b/src/modules/plant/plant.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Plant.h" +#include "faker-cxx/plant.h" #include -#include "faker-cxx/Helper.h" -#include "PlantData.h" +#include "faker-cxx/helper.h" +#include "plant_data.h" namespace faker::plant { diff --git a/src/modules/plant/PlantData.h b/src/modules/plant/plant_data.h similarity index 100% rename from src/modules/plant/PlantData.h rename to src/modules/plant/plant_data.h diff --git a/src/modules/science/Science.cpp b/src/modules/science/science.cpp similarity index 91% rename from src/modules/science/Science.cpp rename to src/modules/science/science.cpp index 52ffc6cfe..4d7422d5c 100644 --- a/src/modules/science/Science.cpp +++ b/src/modules/science/science.cpp @@ -1,7 +1,7 @@ -#include "faker-cxx/Science.h" +#include "faker-cxx/science.h" -#include "faker-cxx/Helper.h" -#include "ScienceData.h" +#include "faker-cxx/helper.h" +#include "science_data.h" namespace faker::science { diff --git a/src/modules/science/ScienceData.h b/src/modules/science/science_data.h similarity index 99% rename from src/modules/science/ScienceData.h rename to src/modules/science/science_data.h index f313a1b86..c7c1b9ef7 100644 --- a/src/modules/science/ScienceData.h +++ b/src/modules/science/science_data.h @@ -2,7 +2,7 @@ #include -#include "faker-cxx/Science.h" +#include "faker-cxx/science.h" namespace faker::science { diff --git a/src/modules/sport/Sport.cpp b/src/modules/sport/sport.cpp similarity index 84% rename from src/modules/sport/Sport.cpp rename to src/modules/sport/sport.cpp index 3f713b7e0..dfbf88419 100644 --- a/src/modules/sport/Sport.cpp +++ b/src/modules/sport/sport.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Sport.h" +#include "faker-cxx/sport.h" #include -#include "faker-cxx/Helper.h" -#include "SportData.h" +#include "faker-cxx/helper.h" +#include "sport_data.h" namespace faker::sport { diff --git a/src/modules/sport/SportData.h b/src/modules/sport/sport_data.h similarity index 100% rename from src/modules/sport/SportData.h rename to src/modules/sport/sport_data.h diff --git a/src/modules/string/String.cpp b/src/modules/string/string.cpp similarity index 98% rename from src/modules/string/String.cpp rename to src/modules/string/string.cpp index ee9499662..4eeb6a2c7 100644 --- a/src/modules/string/String.cpp +++ b/src/modules/string/string.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/String.h" +#include "faker-cxx/string.h" #include #include @@ -8,12 +8,12 @@ #include #include -#include "common/FormatHelper.h" -#include "common/AlgoHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/types/Hex.h" -#include "StringData.h" +#include "common/format_helper.h" +#include "common/algo_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/types/hex.h" +#include "string_data.h" namespace faker::string { diff --git a/src/modules/string/StringData.h b/src/modules/string/string_data.h similarity index 100% rename from src/modules/string/StringData.h rename to src/modules/string/string_data.h diff --git a/src/modules/system/System.cpp b/src/modules/system/system.cpp similarity index 95% rename from src/modules/system/System.cpp rename to src/modules/system/system.cpp index f171eb4af..300b6efd0 100644 --- a/src/modules/system/System.cpp +++ b/src/modules/system/system.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/System.h" +#include "faker-cxx/system.h" #include #include @@ -6,16 +6,16 @@ #include #include -#include "../src/common/StringHelper.h" -#include "common/AlgoHelper.h" -#include "common/FormatHelper.h" -#include "faker-cxx/Datatype.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Internet.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" -#include "faker-cxx/Word.h" -#include "SystemData.h" +#include "../src/common/string_helper.h" +#include "common/algo_helper.h" +#include "common/format_helper.h" +#include "faker-cxx/datatype.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/internet.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" +#include "faker-cxx/word.h" +#include "system_data.h" namespace faker::system { diff --git a/src/modules/system/SystemData.h b/src/modules/system/system_data.h similarity index 99% rename from src/modules/system/SystemData.h rename to src/modules/system/system_data.h index 07feb9f85..43264099a 100644 --- a/src/modules/system/SystemData.h +++ b/src/modules/system/system_data.h @@ -3,7 +3,7 @@ #include #include -#include "faker-cxx/System.h" +#include "faker-cxx/system.h" namespace faker::system { diff --git a/src/modules/vehicle/Vehicle.cpp b/src/modules/vehicle/vehicle.cpp similarity index 87% rename from src/modules/vehicle/Vehicle.cpp rename to src/modules/vehicle/vehicle.cpp index a125c1425..6a364d3da 100644 --- a/src/modules/vehicle/Vehicle.cpp +++ b/src/modules/vehicle/vehicle.cpp @@ -1,13 +1,13 @@ -#include "faker-cxx/Vehicle.h" +#include "faker-cxx/vehicle.h" #include #include -#include "common/FormatHelper.h" -#include "faker-cxx/Helper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/String.h" -#include "VehicleData.h" +#include "common/format_helper.h" +#include "faker-cxx/helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/string.h" +#include "vehicle_data.h" namespace faker::vehicle { diff --git a/src/modules/vehicle/VehicleData.h b/src/modules/vehicle/vehicle_data.h similarity index 100% rename from src/modules/vehicle/VehicleData.h rename to src/modules/vehicle/vehicle_data.h diff --git a/src/modules/videoGame/VideoGame.cpp b/src/modules/video_game/video_game.cpp similarity index 86% rename from src/modules/videoGame/VideoGame.cpp rename to src/modules/video_game/video_game.cpp index 420ff6327..e135f044e 100644 --- a/src/modules/videoGame/VideoGame.cpp +++ b/src/modules/video_game/video_game.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/VideoGame.h" +#include "faker-cxx/video_game.h" #include -#include "faker-cxx/Helper.h" -#include "VideoGameData.h" +#include "faker-cxx/helper.h" +#include "video_game_data.h" namespace faker::videogame { diff --git a/src/modules/videoGame/VideoGameData.h b/src/modules/video_game/video_game_data.h similarity index 100% rename from src/modules/videoGame/VideoGameData.h rename to src/modules/video_game/video_game_data.h diff --git a/src/modules/weather/Weather.cpp b/src/modules/weather/weather.cpp similarity index 63% rename from src/modules/weather/Weather.cpp rename to src/modules/weather/weather.cpp index 6048d545d..37b527f6a 100644 --- a/src/modules/weather/Weather.cpp +++ b/src/modules/weather/weather.cpp @@ -1,9 +1,9 @@ -#include "faker-cxx/Weather.h" +#include "faker-cxx/weather.h" #include -#include "faker-cxx/Helper.h" -#include "WeatherData.h" +#include "faker-cxx/helper.h" +#include "weather_data.h" namespace faker::weather { diff --git a/src/modules/weather/WeatherData.h b/src/modules/weather/weather_data.h similarity index 100% rename from src/modules/weather/WeatherData.h rename to src/modules/weather/weather_data.h diff --git a/src/modules/word/Word.cpp b/src/modules/word/word.cpp similarity index 97% rename from src/modules/word/Word.cpp rename to src/modules/word/word.cpp index b59690a97..e9a829905 100644 --- a/src/modules/word/Word.cpp +++ b/src/modules/word/word.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Word.h" +#include "faker-cxx/word.h" #include #include @@ -6,8 +6,8 @@ #include #include -#include "faker-cxx/Helper.h" -#include "WordData.h" +#include "faker-cxx/helper.h" +#include "word_data.h" namespace faker::word { diff --git a/src/modules/word/WordData.h b/src/modules/word/word_data.h similarity index 99% rename from src/modules/word/WordData.h rename to src/modules/word/word_data.h index cfe2cd0ac..6f92156b8 100644 --- a/src/modules/word/WordData.h +++ b/src/modules/word/word_data.h @@ -1,6 +1,6 @@ #pragma once -#include "WordStore.h" +#include "word_store.h" #include #include diff --git a/src/modules/word/WordStore.h b/src/modules/word/word_store.h similarity index 100% rename from src/modules/word/WordStore.h rename to src/modules/word/word_store.h diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5dc466eed..13cd02990 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,45 +5,45 @@ include(CTest) include("${CMAKE_SOURCE_DIR}/cmake/CompilerWarnings.cmake") set(FAKER_UT_SOURCES - common/FormatHelperTest.cpp - common/LuhnCheckTest.cpp - common/StringHelperTest.cpp - modules/airline/AirlineTest.cpp - modules/animal/AnimalTest.cpp - modules/book/BookTest.cpp - modules/color/ColorTest.cpp - modules/commerce/CommerceTest.cpp - modules/company/CompanyTest.cpp - modules/computer/ComputerTest.cpp - modules/crypto/CryptoTest.cpp - modules/database/DatabaseTest.cpp - modules/datatype/DatatypeTest.cpp - modules/date/DateTest.cpp - modules/finance/FinanceTest.cpp - modules/food/FoodTest.cpp - modules/git/GitTest.cpp - modules/hacker/HackerTest.cpp - modules/helper/HelperTest.cpp - modules/image/ImageTest.cpp - modules/internet/InternetTest.cpp - modules/location/LocationTest.cpp - modules/lorem/LoremTest.cpp - modules/medicine/MedicineTest.cpp - modules/movie/MovieTest.cpp - modules/music/MusicTest.cpp - modules/number/NumberTest.cpp - modules/person/PersonTest.cpp - modules/phone/PhoneTest.cpp - modules/plant/PlantTest.cpp - modules/science/ScienceTest.cpp - modules/sport/SportTest.cpp - modules/string/StringTest.cpp - modules/system/SystemTest.cpp - modules/vehicle/VehicleTest.cpp - modules/version/VersionTest.cpp - modules/videoGame/VideoGameTest.cpp - modules/weather/WeatherTest.cpp - modules/word/WordTest.cpp + common/format_helper_test.cpp + common/luhn_check_test.cpp + common/string_helper_test.cpp + modules/airline/airline_test.cpp + modules/animal/animal_test.cpp + modules/book/book_test.cpp + modules/color/color_test.cpp + modules/commerce/commerce_test.cpp + modules/company/company_test.cpp + modules/computer/computer_test.cpp + modules/crypto/crypto_test.cpp + modules/database/database_test.cpp + modules/datatype/datatype_test.cpp + modules/date/date_test.cpp + modules/finance/finance_test.cpp + modules/food/food_test.cpp + modules/git/git_test.cpp + modules/hacker/hacker_test.cpp + modules/helper/helper_test.cpp + modules/image/image_test.cpp + modules/internet/internet_test.cpp + modules/location/location_test.cpp + modules/lorem/lorem_test.cpp + modules/medicine/medicine_test.cpp + modules/movie/movie_test.cpp + modules/music/music_test.cpp + modules/number/number_test.cpp + modules/person/person_test.cpp + modules/phone/phone_test.cpp + modules/plant/plant_test.cpp + modules/science/science_test.cpp + modules/sport/sport_test.cpp + modules/string/string_test.cpp + modules/system/system_test.cpp + modules/vehicle/vehicle_test.cpp + modules/version/version_test.cpp + modules/video_game/video_game_test.cpp + modules/weather/weather_test.cpp + modules/word/word_test.cpp ) add_executable(${PROJECT_NAME} ${FAKER_UT_SOURCES}) diff --git a/tests/common/FormatHelperTest.cpp b/tests/common/format_helper_test.cpp similarity index 98% rename from tests/common/FormatHelperTest.cpp rename to tests/common/format_helper_test.cpp index adf40c6d9..563933f53 100644 --- a/tests/common/FormatHelperTest.cpp +++ b/tests/common/format_helper_test.cpp @@ -1,4 +1,4 @@ -#include "FormatHelper.h" +#include "format_helper.h" #include #include diff --git a/tests/common/LuhnCheckTest.cpp b/tests/common/luhn_check_test.cpp similarity index 94% rename from tests/common/LuhnCheckTest.cpp rename to tests/common/luhn_check_test.cpp index 27fc8718f..aabdf1c6c 100644 --- a/tests/common/LuhnCheckTest.cpp +++ b/tests/common/luhn_check_test.cpp @@ -1,4 +1,4 @@ -#include "LuhnCheck.h" +#include "luhn_check.h" #include diff --git a/tests/common/StringHelperTest.cpp b/tests/common/string_helper_test.cpp similarity index 98% rename from tests/common/StringHelperTest.cpp rename to tests/common/string_helper_test.cpp index f8089cb67..5bad123dc 100644 --- a/tests/common/StringHelperTest.cpp +++ b/tests/common/string_helper_test.cpp @@ -1,4 +1,4 @@ -#include "StringHelper.h" +#include "string_helper.h" #include diff --git a/tests/modules/airline/AirlineTest.cpp b/tests/modules/airline/airline_test.cpp similarity index 98% rename from tests/modules/airline/AirlineTest.cpp rename to tests/modules/airline/airline_test.cpp index 54a1eca03..cec523938 100644 --- a/tests/modules/airline/AirlineTest.cpp +++ b/tests/modules/airline/airline_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Airline.h" +#include "faker-cxx/airline.h" #include #include @@ -7,7 +7,7 @@ #include "gtest/gtest.h" -#include "airline/AirlineData.h" +#include "airline/airline_data.h" using namespace ::testing; using namespace faker::airline; diff --git a/tests/modules/animal/AnimalTest.cpp b/tests/modules/animal/animal_test.cpp similarity index 98% rename from tests/modules/animal/AnimalTest.cpp rename to tests/modules/animal/animal_test.cpp index e9c58f129..0a3801d65 100644 --- a/tests/modules/animal/AnimalTest.cpp +++ b/tests/modules/animal/animal_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Animal.h" +#include "faker-cxx/animal.h" #include #include #include "gtest/gtest.h" -#include "animal/AnimalData.h" +#include "animal/animal_data.h" using namespace ::testing; using namespace faker::animal; diff --git a/tests/modules/book/BookTest.cpp b/tests/modules/book/book_test.cpp similarity index 96% rename from tests/modules/book/BookTest.cpp rename to tests/modules/book/book_test.cpp index f72aa8ce9..342989f71 100644 --- a/tests/modules/book/BookTest.cpp +++ b/tests/modules/book/book_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Book.h" +#include "faker-cxx/book.h" #include #include #include "gtest/gtest.h" -#include "book/BookData.h" +#include "book/book_data.h" using namespace ::testing; using namespace faker::book; diff --git a/tests/modules/color/ColorTest.cpp b/tests/modules/color/color_test.cpp similarity index 98% rename from tests/modules/color/ColorTest.cpp rename to tests/modules/color/color_test.cpp index cc44fbacf..39144294a 100644 --- a/tests/modules/color/ColorTest.cpp +++ b/tests/modules/color/color_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Color.h" +#include "faker-cxx/color.h" #include #include @@ -7,10 +7,10 @@ #include "gtest/gtest.h" -#include "color/ColorData.h" -#include "common/StringHelper.h" -#include "faker-cxx/types/Hex.h" -#include "string/StringData.h" +#include "color/color_data.h" +#include "common/string_helper.h" +#include "faker-cxx/types/hex.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/commerce/CommerceTest.cpp b/tests/modules/commerce/commerce_test.cpp similarity index 98% rename from tests/modules/commerce/CommerceTest.cpp rename to tests/modules/commerce/commerce_test.cpp index e66eb095b..714d8e241 100644 --- a/tests/modules/commerce/CommerceTest.cpp +++ b/tests/modules/commerce/commerce_test.cpp @@ -1,13 +1,13 @@ -#include "faker-cxx/Commerce.h" +#include "faker-cxx/commerce.h" #include #include #include "gtest/gtest.h" -#include "commerce/CommerceData.h" -#include "common/StringHelper.h" -#include "string/StringData.h" +#include "commerce/commerce_data.h" +#include "common/string_helper.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/company/CompanyTest.cpp b/tests/modules/company/company_test.cpp similarity index 98% rename from tests/modules/company/CompanyTest.cpp rename to tests/modules/company/company_test.cpp index 4205823c9..af14c9f3c 100644 --- a/tests/modules/company/CompanyTest.cpp +++ b/tests/modules/company/company_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Company.h" +#include "faker-cxx/company.h" #include #include @@ -6,9 +6,9 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "company/CompanyData.h" -#include "person/PersonData.h" +#include "common/string_helper.h" +#include "company/company_data.h" +#include "person/person_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/computer/ComputerTest.cpp b/tests/modules/computer/computer_test.cpp similarity index 98% rename from tests/modules/computer/ComputerTest.cpp rename to tests/modules/computer/computer_test.cpp index b49db39be..8abdf0255 100644 --- a/tests/modules/computer/ComputerTest.cpp +++ b/tests/modules/computer/computer_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Computer.h" +#include "faker-cxx/computer.h" #include #include #include "gtest/gtest.h" -#include "computer/ComputerData.h" +#include "computer/computer_data.h" using namespace ::testing; using namespace faker::computer; diff --git a/tests/modules/crypto/CryptoTest.cpp b/tests/modules/crypto/crypto_test.cpp similarity index 92% rename from tests/modules/crypto/CryptoTest.cpp rename to tests/modules/crypto/crypto_test.cpp index 14425ad0c..e1714d25f 100644 --- a/tests/modules/crypto/CryptoTest.cpp +++ b/tests/modules/crypto/crypto_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Crypto.h" +#include "faker-cxx/crypto.h" #include #include diff --git a/tests/modules/database/DatabaseTest.cpp b/tests/modules/database/database_test.cpp similarity index 94% rename from tests/modules/database/DatabaseTest.cpp rename to tests/modules/database/database_test.cpp index 677f81fc5..c28c12c78 100644 --- a/tests/modules/database/DatabaseTest.cpp +++ b/tests/modules/database/database_test.cpp @@ -1,12 +1,12 @@ -#include "faker-cxx/Database.h" +#include "faker-cxx/database.h" #include #include #include "gtest/gtest.h" -#include "database/DatabaseData.h" -#include "string/StringData.h" +#include "database/database_data.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/datatype/DatatypeTest.cpp b/tests/modules/datatype/datatype_test.cpp similarity index 96% rename from tests/modules/datatype/DatatypeTest.cpp rename to tests/modules/datatype/datatype_test.cpp index 39bf18618..f38280a71 100644 --- a/tests/modules/datatype/DatatypeTest.cpp +++ b/tests/modules/datatype/datatype_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Datatype.h" +#include "faker-cxx/datatype.h" #include #include diff --git a/tests/modules/date/DateTest.cpp b/tests/modules/date/date_test.cpp similarity index 99% rename from tests/modules/date/DateTest.cpp rename to tests/modules/date/date_test.cpp index 00a240f92..c58fafb64 100644 --- a/tests/modules/date/DateTest.cpp +++ b/tests/modules/date/date_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Date.h" +#include "faker-cxx/date.h" #include #include @@ -12,8 +12,8 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "date/DateData.h" +#include "common/string_helper.h" +#include "date/date_data.h" #ifdef _WIN32 #define timegm _mkgmtime diff --git a/tests/modules/finance/FinanceTest.cpp b/tests/modules/finance/finance_test.cpp similarity index 98% rename from tests/modules/finance/FinanceTest.cpp rename to tests/modules/finance/finance_test.cpp index 7d685cf24..5613d5d24 100644 --- a/tests/modules/finance/FinanceTest.cpp +++ b/tests/modules/finance/finance_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Finance.h" +#include "faker-cxx/finance.h" #include #include @@ -9,12 +9,12 @@ #include "gtest/gtest.h" -#include "common/LuhnCheck.h" -#include "common/StringHelper.h" -#include "faker-cxx/types/Precision.h" -#include "finance/FinanceData.h" +#include "common/luhn_check.h" +#include "common/string_helper.h" +#include "faker-cxx/types/precision.h" +#include "finance/finance_data.h" #include "gmock/gmock.h" -#include "string/StringData.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/food/FoodTest.cpp b/tests/modules/food/food_test.cpp similarity index 98% rename from tests/modules/food/FoodTest.cpp rename to tests/modules/food/food_test.cpp index c9edc6ecd..6442bec8b 100644 --- a/tests/modules/food/FoodTest.cpp +++ b/tests/modules/food/food_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Food.h" +#include "faker-cxx/food.h" #include #include #include "gtest/gtest.h" -#include "food/FoodData.h" +#include "food/food_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/git/GitTest.cpp b/tests/modules/git/git_test.cpp similarity index 97% rename from tests/modules/git/GitTest.cpp rename to tests/modules/git/git_test.cpp index 5b63e1582..1803eacec 100644 --- a/tests/modules/git/GitTest.cpp +++ b/tests/modules/git/git_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Git.h" +#include "faker-cxx/git.h" #include #include @@ -6,8 +6,8 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "faker-cxx/Number.h" +#include "common/string_helper.h" +#include "faker-cxx/number.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/hacker/HackerTest.cpp b/tests/modules/hacker/hacker_test.cpp similarity index 97% rename from tests/modules/hacker/HackerTest.cpp rename to tests/modules/hacker/hacker_test.cpp index 96a12adbb..6ce7582dc 100644 --- a/tests/modules/hacker/HackerTest.cpp +++ b/tests/modules/hacker/hacker_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Hacker.h" +#include "faker-cxx/hacker.h" #include #include @@ -6,7 +6,7 @@ #include "gtest/gtest.h" -#include "hacker/HackerData.h" +#include "hacker/hacker_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/helper/HelperTest.cpp b/tests/modules/helper/helper_test.cpp similarity index 98% rename from tests/modules/helper/HelperTest.cpp rename to tests/modules/helper/helper_test.cpp index 5e2d7afa3..c4f2fb41d 100644 --- a/tests/modules/helper/HelperTest.cpp +++ b/tests/modules/helper/helper_test.cpp @@ -1,5 +1,5 @@ -#include "faker-cxx/Helper.h" -#include +#include "faker-cxx/helper.h" +#include #include #include diff --git a/tests/modules/image/ImageTest.cpp b/tests/modules/image/image_test.cpp similarity index 97% rename from tests/modules/image/ImageTest.cpp rename to tests/modules/image/image_test.cpp index 3c42d9386..3579eb212 100644 --- a/tests/modules/image/ImageTest.cpp +++ b/tests/modules/image/image_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Image.h" +#include "faker-cxx/image.h" #include #include @@ -7,7 +7,7 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" +#include "common/string_helper.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/internet/InternetTest.cpp b/tests/modules/internet/internet_test.cpp similarity index 99% rename from tests/modules/internet/InternetTest.cpp rename to tests/modules/internet/internet_test.cpp index 61b4010de..66bc7f9f6 100644 --- a/tests/modules/internet/InternetTest.cpp +++ b/tests/modules/internet/internet_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Internet.h" +#include "faker-cxx/internet.h" #include #include @@ -11,13 +11,13 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "faker-cxx/Number.h" -#include "faker-cxx/types/Country.h" -#include "internet/InternetData.h" -#include "person/PersonData.h" -#include "string/StringData.h" -#include "word/WordData.h" +#include "common/string_helper.h" +#include "faker-cxx/number.h" +#include "faker-cxx/types/country.h" +#include "internet/internet_data.h" +#include "person/person_data.h" +#include "string/string_data.h" +#include "word/word_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/location/LocationTest.cpp b/tests/modules/location/location_test.cpp similarity index 99% rename from tests/modules/location/LocationTest.cpp rename to tests/modules/location/location_test.cpp index 67bbe7b5b..ce488793d 100644 --- a/tests/modules/location/LocationTest.cpp +++ b/tests/modules/location/location_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Location.h" +#include "faker-cxx/location.h" #include #include @@ -8,11 +8,11 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "faker-cxx/types/Precision.h" -#include "location/LocationData.h" -#include "person/PersonData.h" -#include "string/StringData.h" +#include "common/string_helper.h" +#include "faker-cxx/types/precision.h" +#include "location/location_data.h" +#include "person/person_data.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/lorem/LoremTest.cpp b/tests/modules/lorem/lorem_test.cpp similarity index 98% rename from tests/modules/lorem/LoremTest.cpp rename to tests/modules/lorem/lorem_test.cpp index 4c6d6eddf..d91ef4279 100644 --- a/tests/modules/lorem/LoremTest.cpp +++ b/tests/modules/lorem/lorem_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Lorem.h" +#include "faker-cxx/lorem.h" #include #include @@ -6,8 +6,8 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "lorem/LoremData.h" +#include "common/string_helper.h" +#include "lorem/lorem_data.h" using namespace ::testing; using namespace::faker; diff --git a/tests/modules/medicine/MedicineTest.cpp b/tests/modules/medicine/medicine_test.cpp similarity index 94% rename from tests/modules/medicine/MedicineTest.cpp rename to tests/modules/medicine/medicine_test.cpp index 645d10a06..8b2a580c7 100644 --- a/tests/modules/medicine/MedicineTest.cpp +++ b/tests/modules/medicine/medicine_test.cpp @@ -1,11 +1,11 @@ #include -#include +#include #include #include "gtest/gtest.h" -#include "medicine/MedicineData.h" +#include "medicine/medicine_data.h" using namespace ::testing; using namespace faker::medicine; diff --git a/tests/modules/movie/MovieTest.cpp b/tests/modules/movie/movie_test.cpp similarity index 96% rename from tests/modules/movie/MovieTest.cpp rename to tests/modules/movie/movie_test.cpp index 1426a4d6e..488ba86e6 100644 --- a/tests/modules/movie/MovieTest.cpp +++ b/tests/modules/movie/movie_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Movie.h" +#include "faker-cxx/movie.h" #include #include #include "gtest/gtest.h" -#include "movie/MovieData.h" +#include "movie/movie_data.h" using namespace ::testing; using namespace faker::movie; diff --git a/tests/modules/music/MusicTest.cpp b/tests/modules/music/music_test.cpp similarity index 94% rename from tests/modules/music/MusicTest.cpp rename to tests/modules/music/music_test.cpp index 7bee72132..5018d38ad 100644 --- a/tests/modules/music/MusicTest.cpp +++ b/tests/modules/music/music_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Music.h" +#include "faker-cxx/music.h" #include #include #include "gtest/gtest.h" -#include "music/MusicData.h" +#include "music/music_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/number/NumberTest.cpp b/tests/modules/number/number_test.cpp similarity index 98% rename from tests/modules/number/NumberTest.cpp rename to tests/modules/number/number_test.cpp index a4bdeda5a..f2c6e4478 100644 --- a/tests/modules/number/NumberTest.cpp +++ b/tests/modules/number/number_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Number.h" +#include "faker-cxx/number.h" #include diff --git a/tests/modules/person/PersonTest.cpp b/tests/modules/person/person_test.cpp similarity index 99% rename from tests/modules/person/PersonTest.cpp rename to tests/modules/person/person_test.cpp index 8eb0001c5..113fcce9a 100644 --- a/tests/modules/person/PersonTest.cpp +++ b/tests/modules/person/person_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Person.h" +#include "faker-cxx/person.h" #include #include @@ -10,11 +10,11 @@ #include "gtest/gtest.h" -#include "faker-cxx/Internet.h" -#include "faker-cxx/types/Country.h" -#include "person/PersonData.h" -#include "StringHelper.h" -#include "word/WordData.h" +#include "faker-cxx/internet.h" +#include "faker-cxx/types/country.h" +#include "person/person_data.h" +#include "string_helper.h" +#include "word/word_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/phone/PhoneTest.cpp b/tests/modules/phone/phone_test.cpp similarity index 98% rename from tests/modules/phone/PhoneTest.cpp rename to tests/modules/phone/phone_test.cpp index eb3f22e77..92dd600ee 100644 --- a/tests/modules/phone/PhoneTest.cpp +++ b/tests/modules/phone/phone_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Phone.h" +#include "faker-cxx/phone.h" #include #include @@ -7,7 +7,7 @@ #include "gtest/gtest.h" -#include "phone/PhoneData.h" +#include "phone/phone_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/plant/PlantTest.cpp b/tests/modules/plant/plant_test.cpp similarity index 97% rename from tests/modules/plant/PlantTest.cpp rename to tests/modules/plant/plant_test.cpp index 96a490ab8..ad6658531 100644 --- a/tests/modules/plant/PlantTest.cpp +++ b/tests/modules/plant/plant_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Plant.h" +#include "faker-cxx/plant.h" #include #include #include "gtest/gtest.h" -#include "plant/PlantData.h" +#include "plant/plant_data.h" using namespace ::testing; using namespace faker::plant; diff --git a/tests/modules/science/ScienceTest.cpp b/tests/modules/science/science_test.cpp similarity index 97% rename from tests/modules/science/ScienceTest.cpp rename to tests/modules/science/science_test.cpp index 4d7b4aeac..e25736b35 100644 --- a/tests/modules/science/ScienceTest.cpp +++ b/tests/modules/science/science_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Science.h" +#include "faker-cxx/science.h" #include #include #include "gtest/gtest.h" -#include "science/ScienceData.h" +#include "science/science_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/sport/SportTest.cpp b/tests/modules/sport/sport_test.cpp similarity index 96% rename from tests/modules/sport/SportTest.cpp rename to tests/modules/sport/sport_test.cpp index a916eb2c4..5177fb4cf 100644 --- a/tests/modules/sport/SportTest.cpp +++ b/tests/modules/sport/sport_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Sport.h" +#include "faker-cxx/sport.h" #include #include #include "gtest/gtest.h" -#include "sport/SportData.h" +#include "sport/sport_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/string/StringTest.cpp b/tests/modules/string/string_test.cpp similarity index 99% rename from tests/modules/string/StringTest.cpp rename to tests/modules/string/string_test.cpp index 66c0564e0..59503fdf0 100644 --- a/tests/modules/string/StringTest.cpp +++ b/tests/modules/string/string_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/String.h" +#include "faker-cxx/string.h" #include #include @@ -9,9 +9,9 @@ #include "gtest/gtest.h" -#include "faker-cxx/RandomGenerator.h" -#include "faker-cxx/types/Hex.h" -#include "string/StringData.h" +#include "faker-cxx/random_generator.h" +#include "faker-cxx/types/hex.h" +#include "string/string_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/system/SystemTest.cpp b/tests/modules/system/system_test.cpp similarity index 99% rename from tests/modules/system/SystemTest.cpp rename to tests/modules/system/system_test.cpp index 485585c81..182512b49 100644 --- a/tests/modules/system/SystemTest.cpp +++ b/tests/modules/system/system_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/System.h" +#include "faker-cxx/system.h" #include #include @@ -10,7 +10,7 @@ #include "gtest/gtest.h" -#include "system/SystemData.h" +#include "system/system_data.h" using namespace ::testing; using namespace faker::system; diff --git a/tests/modules/vehicle/VehicleTest.cpp b/tests/modules/vehicle/vehicle_test.cpp similarity index 97% rename from tests/modules/vehicle/VehicleTest.cpp rename to tests/modules/vehicle/vehicle_test.cpp index 0ef0e84fd..9142bef1c 100644 --- a/tests/modules/vehicle/VehicleTest.cpp +++ b/tests/modules/vehicle/vehicle_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Vehicle.h" +#include "faker-cxx/vehicle.h" #include #include @@ -7,7 +7,7 @@ #include "gtest/gtest.h" -#include "vehicle/VehicleData.h" +#include "vehicle/vehicle_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/version/VersionTest.cpp b/tests/modules/version/version_test.cpp similarity index 90% rename from tests/modules/version/VersionTest.cpp rename to tests/modules/version/version_test.cpp index 73a08e045..b414416dc 100644 --- a/tests/modules/version/VersionTest.cpp +++ b/tests/modules/version/version_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Version.h" +#include "faker-cxx/version.h" #include "gtest/gtest.h" diff --git a/tests/modules/videoGame/VideoGameTest.cpp b/tests/modules/video_game/video_game_test.cpp similarity index 94% rename from tests/modules/videoGame/VideoGameTest.cpp rename to tests/modules/video_game/video_game_test.cpp index 7fb52b88a..f7424ad72 100644 --- a/tests/modules/videoGame/VideoGameTest.cpp +++ b/tests/modules/video_game/video_game_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/VideoGame.h" +#include "faker-cxx/video_game.h" #include #include #include "gtest/gtest.h" -#include "videoGame/VideoGameData.h" +#include "video_game/video_game_data.h" using namespace ::testing; using namespace faker; diff --git a/tests/modules/weather/WeatherTest.cpp b/tests/modules/weather/weather_test.cpp similarity index 90% rename from tests/modules/weather/WeatherTest.cpp rename to tests/modules/weather/weather_test.cpp index a1e865331..f3d02b7f6 100644 --- a/tests/modules/weather/WeatherTest.cpp +++ b/tests/modules/weather/weather_test.cpp @@ -1,11 +1,11 @@ -#include "faker-cxx/Weather.h" +#include "faker-cxx/weather.h" #include #include #include "gtest/gtest.h" -#include "weather/WeatherData.h" +#include "weather/weather_data.h" using namespace ::testing; using namespace faker::weather; diff --git a/tests/modules/word/WordTest.cpp b/tests/modules/word/word_test.cpp similarity index 98% rename from tests/modules/word/WordTest.cpp rename to tests/modules/word/word_test.cpp index fa3212ff8..b12a9f2d9 100644 --- a/tests/modules/word/WordTest.cpp +++ b/tests/modules/word/word_test.cpp @@ -1,4 +1,4 @@ -#include "faker-cxx/Word.h" +#include "faker-cxx/word.h" #include #include @@ -6,8 +6,8 @@ #include "gtest/gtest.h" -#include "common/StringHelper.h" -#include "word/WordData.h" +#include "common/string_helper.h" +#include "word/word_data.h" using namespace faker::word; using namespace faker;