-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/git-module' of https://github.com/Pe7o/faker-cxx …
…into feature/git-module
- Loading branch information
Showing
91 changed files
with
9,171 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: clang | ||
name: clang++ | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: apple-clang++ | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
|
||
env: | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Install clang | ||
run: brew install llvm@16 && echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile && source /Users/runner/.bash_profile && which clang++ | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: | | ||
cmake -B ${{github.workspace}}/build \ | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- working-directory: build/ | ||
run: ./faker-cxx-UT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "externals/googletest"] | ||
path = externals/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "externals/fmt"] | ||
path = externals/fmt | ||
url = https://github.com/fmtlib/fmt.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace faker | ||
{ | ||
class Animal | ||
{ | ||
public: | ||
/** | ||
* @brief Returns a random species of bear. | ||
* | ||
* @returns Species of bear. | ||
* | ||
* @code | ||
* Animal::bear() // "Polar bear" | ||
* @endcode | ||
*/ | ||
static std::string bear(); | ||
|
||
/** | ||
* @brief Returns a random species of bird. | ||
* | ||
* @returns Species of bird. | ||
* | ||
* @code | ||
* Animal::bird() // "Black-bellied Whistling-Duck" | ||
* @endcode | ||
*/ | ||
static std::string bird(); | ||
|
||
/** | ||
* @brief Returns a random species of cat. | ||
* | ||
* @returns Species of cat. | ||
* | ||
* @code | ||
* Animal::cat() // "Chartreux" | ||
* @endcode | ||
*/ | ||
static std::string cat(); | ||
|
||
/** | ||
* @brief Returns a random species of cetacean. | ||
* | ||
* @returns Species of cetacean. | ||
* | ||
* @code | ||
* Animal::cetacean() // "Blue Whale" | ||
* @endcode | ||
*/ | ||
static std::string cetacean(); | ||
|
||
/** | ||
* @brief Returns a random species of cow. | ||
* | ||
* @returns Species of cow. | ||
* | ||
* @code | ||
* Animal::cow() // "American Angus" | ||
* @endcode | ||
*/ | ||
static std::string cow(); | ||
|
||
/** | ||
* @brief Returns a random species of crocodilia. | ||
* | ||
* @returns Species of crocodilia. | ||
* | ||
* @code | ||
* Animal::crocodilia() // "Dwarf Crocodile" | ||
* @endcode | ||
*/ | ||
static std::string crocodilia(); | ||
|
||
/** | ||
* @brief Returns a random species of dog. | ||
* | ||
* @returns Species of dog. | ||
* | ||
* @code | ||
* Animal::dog() // "Shiba Inu" | ||
* @endcode | ||
*/ | ||
static std::string dog(); | ||
|
||
/** | ||
* @brief Returns a random species of fish. | ||
* | ||
* @returns Species of fish. | ||
* | ||
* @code | ||
* Animal::fish() // "Silver carp" | ||
* @endcode | ||
*/ | ||
static std::string fish(); | ||
|
||
/** | ||
* @brief Returns a random species of horse. | ||
* | ||
* @returns Species of horse. | ||
* | ||
* @code | ||
* Animal::horse() // "Fjord Horse" | ||
* @endcode | ||
*/ | ||
static std::string horse(); | ||
|
||
/** | ||
* @brief Returns a random species of insect. | ||
* | ||
* @returns Species of insect. | ||
* | ||
* @code | ||
* Animal::insect() // "Bee" | ||
* @endcode | ||
*/ | ||
static std::string insect(); | ||
|
||
/** | ||
* @brief Returns a random species of lion. | ||
* | ||
* @returns Species of lion. | ||
* | ||
* @code | ||
* Animal::lion() // "West African Lion" | ||
* @endcode | ||
*/ | ||
static std::string lion(); | ||
|
||
/** | ||
* @brief Returns a random species of rabbit. | ||
* | ||
* @returns Species of rabbit. | ||
* | ||
* @code | ||
* Animal::rabbit() // "Californian" | ||
* @endcode | ||
*/ | ||
static std::string rabbit(); | ||
|
||
/** | ||
* @brief Returns a random species of rodent. | ||
* | ||
* @returns Species of rodent. | ||
* | ||
* @code | ||
* Animal::rodent() // "Chinchilla" | ||
* @endcode | ||
*/ | ||
static std::string rodent(); | ||
|
||
/** | ||
* @brief Returns a random species of snake. | ||
* | ||
* @returns Species of snake. | ||
* | ||
* @code | ||
* Animal::snake() // "Boa constrictor" | ||
* @endcode | ||
*/ | ||
static std::string snake(); | ||
|
||
/** | ||
* @brief Returns a random type of animal. | ||
* | ||
* @returns Type of animal. | ||
* | ||
* @code | ||
* Animal::type() // "dog" | ||
* @endcode | ||
*/ | ||
static std::string type(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.