-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from ArkEcosystem/release/v1.4.0
release: 1.4.0
- Loading branch information
Showing
42 changed files
with
1,632 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
ignore: | ||
- "test" | ||
- "extras" | ||
- "src/lib" | ||
- "cmake/" | ||
- "docs/" | ||
- "examples/" | ||
- "extern/" | ||
- "extras/" | ||
- "test/" | ||
- "src/api/**/*.cpp" # hide mocked api | ||
- "src/include/cpp-client/api/**/*.h" # hide mocked api |
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: Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'develop' | ||
|
||
jobs: | ||
codeclimate: | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set compiler to clang++ | ||
run: COMPILER=clang++ | ||
- name: Install Dependencies | ||
run: brew install cmake lcov | ||
- name: Make scripts executable | ||
run: sudo chmod +x ./.github/workflows/test/clang_tidy.sh | ||
- name: Setup Code Climate test-reporter | ||
run: | | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reporter | ||
- name: Build & Run Coverage Tests | ||
run: | | ||
./cc-test-reporter before-build | ||
cmake -DCMAKE_BUILD_TYPE=Coverage -DUNIT_TEST=ON . | ||
cmake --build . | ||
./test/ark_cpp_client_tests | ||
lcov --directory . --include "*/src/*" --include "*/test/*" --exclude "*/src/lib/*" --exclude "*/extern/*" --capture --output-file coverage.info --ignore-errors gcov | ||
./cc-test-reporter format-coverage --input-type lcov coverage.info | ||
./cc-test-reporter upload-coverage | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |
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
Empty file.
Empty file.
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
Empty file.
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
Empty file.
Empty file.
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
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
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,40 @@ | ||
/** | ||
* This file is part of Ark Cpp Client. | ||
* | ||
* (c) Ark Ecosystem <info@ark.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
**/ | ||
|
||
#include "api/bridgechains/bridgechains.h" | ||
|
||
namespace Ark { | ||
namespace Client { | ||
namespace api { | ||
|
||
std::string Bridgechains::get(const char* bridgechainId) { | ||
return http_->get(paths::Bridgechains::get(this->host_, bridgechainId).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Bridgechains::all(const char* const query) { | ||
return http_->get(paths::Bridgechains::all(this->host_, query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Bridgechains::search( | ||
const std::map<std::string, std::string> &bodyParameters, | ||
const char* const query) { | ||
const auto searchPathPair = paths::Bridgechains::search(this->host_, | ||
bodyParameters, | ||
query); | ||
return http_->post(searchPathPair.first.c_str(), | ||
searchPathPair.second.c_str()); | ||
} | ||
|
||
} // namespace api | ||
} // namespace Client | ||
} // namespace Ark |
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,49 @@ | ||
/** | ||
* This file is part of Ark Cpp Client. | ||
* | ||
* (c) Ark Ecosystem <info@ark.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
**/ | ||
|
||
#include "api/businesses/businesses.h" | ||
|
||
namespace Ark { | ||
namespace Client { | ||
namespace api { | ||
|
||
std::string Businesses::get(const char* businessId) { | ||
return http_->get(paths::Businesses::get(this->host_, businessId).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::all(const char* const query) { | ||
return http_->get(paths::Businesses::all(this->host_, query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::bridgechains(const char* businessId, | ||
const char* const query) { | ||
return http_->get(paths::Businesses::bridgechains(this->host_, | ||
businessId, | ||
query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::search( | ||
const std::map<std::string, std::string> &bodyParameters, | ||
const char* const query) { | ||
const auto searchPathPair = paths::Businesses::search(this->host_, | ||
bodyParameters, | ||
query); | ||
return http_->post(searchPathPair.first.c_str(), | ||
searchPathPair.second.c_str()); | ||
} | ||
|
||
} // namespace api | ||
} // namespace Client | ||
} // namespace Ark |
Oops, something went wrong.