Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mantle-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse openpass
mantle-api
Merge requests
!44
Add mock for default weather
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add mock for default weather
ct_wall_mock_default_weather
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Baljeet Singh
requested to merge
ct_wall_mock_default_weather
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Add a mock function for SetWeather to test the default weather implementation.
The default weather is needed by the feature teams for realistic representation of Weather in the physical environment.
Edited
2 years ago
by
Baljeet Singh
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
88ae37d3
1 commit,
2 years ago
1 file
+
5
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
MantleAPI/test/MantleAPI/Test/test_utils.h
+
5
−
2
Options
@@ -434,6 +434,11 @@ public:
(
std
::
uint64_t
entity_id
,
mantle_api
::
ControlStrategyType
type
),
(
const
,
override
));
MOCK_METHOD
(
void
,
SetWeather
,
(
mantle_api
::
Weather
weather
),
(
override
));
const
mantle_api
::
ILaneLocationQueryService
&
GetQueryService
()
const
override
{
return
query_service_
;
}
const
mantle_api
::
ICoordConverter
*
GetConverter
()
const
override
{
return
&
converter_
;
}
@@ -444,8 +449,6 @@ public:
MockControllerRepository
&
GetControllerRepository
()
override
{
return
controller_repository_
;
}
void
SetWeather
(
mantle_api
::
Weather
weather
)
override
{
std
::
ignore
=
weather
;
}
void
SetRoadCondition
(
std
::
vector
<
mantle_api
::
FrictionPatch
>
friction_patches
)
override
{
std
::
ignore
=
friction_patches
;
Loading