Skip to content

Add Delegate interface for OlpClient#1709

Open
VladyslavTsymbal wants to merge 1 commit into
heremaps:masterfrom
VladyslavTsymbal:HERESDK-12772
Open

Add Delegate interface for OlpClient#1709
VladyslavTsymbal wants to merge 1 commit into
heremaps:masterfrom
VladyslavTsymbal:HERESDK-12772

Conversation

@VladyslavTsymbal

Copy link
Copy Markdown

Added a delegate interface for OlpClient to allow for better testing and mocking of the client behavior. Implemented a mock version of the delegate to facilitate unit tests. Solves the issue of testing OlpClient without relying on actual network calls.

Relates-To: HERESDK-12772

@VladyslavTsymbal VladyslavTsymbal force-pushed the HERESDK-12772 branch 2 times, most recently from a43fe9a to f075bc2 Compare July 13, 2026 15:27
@VladyslavTsymbal VladyslavTsymbal changed the title Add Delegate interface for OlpClient and implement mock for testing Add Delegate interface for OlpClient Jul 13, 2026
Comment thread olp-cpp-sdk-core/tests/client/OlpClientTest.cpp Outdated
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.36%. Comparing base (be2513d) to head (c8437fc).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
olp-cpp-sdk-core/src/client/OlpClient.cpp 96.77% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1709      +/-   ##
==========================================
+ Coverage   80.35%   80.36%   +0.01%     
==========================================
  Files         356      356              
  Lines       14282    14297      +15     
  Branches     1563     1564       +1     
==========================================
+ Hits        11475    11489      +14     
  Misses       2179     2179              
- Partials      628      629       +1     
Files with missing lines Coverage Δ
...p-cpp-sdk-core/include/olp/core/client/OlpClient.h 100.00% <100.00%> (ø)
olp-cpp-sdk-core/src/client/OlpClient.cpp 89.11% <96.77%> (+0.35%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Added a delegate interface for OlpClient to allow for better testing
and mocking of the client behavior. Implemented a mock version of the
delegate to facilitate unit tests. Solves the issue of testing OlpClient
without relying on actual network calls.

Relates-To: HERESDK-12772

Signed-off-by: Vladyslav Tsymbal <ext-vladyslav.tsymbal@here.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants