diff --git a/BUILD.bazel b/BUILD.bazel index 9cb022b4..f04b82ce 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 9f343027..c75bc3fb 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 c3efa034..efff0c2c 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 53951660..71ffdb5b 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 fb5df073..00000000 --- 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 facf01b4..fb318913 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 dec7e284..d7f57788 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 be5b5d50..06604030 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 5a08b602..2a7b5952 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 2cda38c3..31b6b14b 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 f6ed9db3..f464ccf7 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 b20e289d..7a2452bc 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 960b066d..d9480ef7 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 5bb273f5..2c4870f3 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 79843e6f..f1289d91 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 7a6649cd..3be3a390 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 00000000..a9477b42 --- /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 ddadee11..d84aa900 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 e4a63820..3a6e8900 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 e0b4537a..c341dedb 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 1f1e5881..73fe9753 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 80562b2e..abf61b00 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 6632622f..5a72f60f 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 9139d16c..34d96723 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 1834bd77..83b40bf4 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 ae8a2608..98e235de 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 ee0a7ed8..7461e4ac 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 cfe0f0d8..ccd4847a 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 b153dd31..a20836f5 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 bf054d3c..38971d48 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 49543e73..4c063d8a 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 660f7fe3..748d9faf 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 4d081cae..c65453b9 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 eb59eecc..53088a1c 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 9fb897a1..2099608f 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 2907c4fd..9443eae7 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 ccbe6a4c..9d6f551c 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 56f99b1b..5763a1b3 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 661d2047..749864fd 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 a9b8e6bb..a4f8d4f8 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 97916913..d750f404 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 4fa928b1..f8db62de 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 35d38c54..ef117792 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 6b77f181..143114b6 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 46d6d7a6..d14e2381 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 d9892964..44c7ec66 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 6590e4b2..eec9a4a5 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 c3585c70..1b84f696 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 700c0844..62a03c16 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 5db5e504..6d6af110 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 a92c9f28..b834365c 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 b1c77a73..58b0aebb 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 26004751..4c3a7f47 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 3048ea47..dc1aa9dc 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 d4f6a831..97f17f8a 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 592e1ace..75aa2c6e 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 28301a5b..22dd5529 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 440a04f4..c2576b7a 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 f2c6f33a..1558948c 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 b646aafb..2c29c126 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 3d053d20..e96a5e90 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 12ac918a..cec01ad1 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 305ca4ce..cc136f2c 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 c7ffd698..566195d1 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 24350cc5..f41dbcd0 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 bc60e0f3..bf55b2c8 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 40836611..050739c5 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 94c8229b..4ea32f5e 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 c5aa20ec..7c280bc9 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 fee8aa20..631940c1 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 d98130f3..f391005a 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 9ebacf0c..cc62805e 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 bf40d021..aebf7c3c 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 5f932226..cfcbf462 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 1365f87a..fdb8f4b7 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 e0bea59a..40285d69 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 0851a8c8..7beaf99f 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 304452f7..387c4f77 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 52ffc6cf..4d7422d5 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 f313a1b8..c7c1b9ef 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 3f713b7e..dfbf8841 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 ee949966..4eeb6a2c 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 f171eb4a..300b6efd 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 07feb9f8..43264099 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 a125c142..6a364d3d 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 420ff632..e135f044 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 6048d545..37b527f6 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 b59690a9..e9a82990 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 cfe2cd0a..6f92156b 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 5dc466ee..13cd0299 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 adf40c6d..563933f5 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 27fc8718..aabdf1c6 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 f8089cb6..5bad123d 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 54a1eca0..cec52393 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 e9c58f12..0a3801d6 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 f72aa8ce..342989f7 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 cc44fbac..39144294 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 e66eb095..714d8e24 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 4205823c..af14c9f3 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 b49db39b..8abdf025 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 14425ad0..e1714d25 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 677f81fc..c28c12c7 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 39bf1861..f38280a7 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 00a240f9..c58fafb6 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 7d685cf2..5613d5d2 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 c9edc6ec..6442bec8 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 5b63e158..1803eace 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 96a12adb..6ce7582d 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 5e2d7afa..c4f2fb41 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 3c42d938..3579eb21 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 61b4010d..66bc7f9f 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 67bbe7b5..ce488793 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 4c6d6edd..d91ef427 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 645d10a0..8b2a580c 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 1426a4d6..488ba86e 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 7bee7213..5018d38a 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 a4bdeda5..f2c6e447 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 8eb0001c..113fcce9 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 eb3f22e7..92dd600e 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 96a490ab..ad665853 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 4d7b4aea..e25736b3 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 a916eb2c..5177fb4c 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 66c0564e..59503fdf 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 485585c8..182512b4 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 0ef0e84f..9142bef1 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 73a08e04..b414416d 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 7fb52b88..f7424ad7 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 a1e86533..f3d02b7f 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 fa3212ff..b12a9f2d 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;