-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase code coverage on external device service #1623
Increase code coverage on external device service #1623
Conversation
Codecov ReportBase: 90.13% // Head: 90.30% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1623 +/- ##
==========================================
+ Coverage 90.13% 90.30% +0.16%
==========================================
Files 268 268
Lines 8842 8842
==========================================
+ Hits 7970 7985 +15
+ Misses 872 857 -15
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopheRib63 you can increase code coverage on the external service: e.g. on the methods GetEdgeDeviceLogs, GetDeviceTwinWithModule and GetAllEdgeDevice
@ChristopheRib63 see here the current coverage and what should be tested: https://app.codecov.io/gh/CGI-FR/IoT-Hub-Portal/blob/main/src/AzureIoTHub.Portal.Server/Services/ExternalDeviceService.cs |
f48ed6c
to
346f691
Compare
{ | ||
// Arrange | ||
var service = CreateService(); | ||
var mockQuery = this.mockRepository.Create<IQuery>(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
{ | ||
// Arrange | ||
var service = CreateService(); | ||
var mockQuery = this.mockRepository.Create<IQuery>(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
477eb65
to
9a252df
Compare
8fac294
to
c9c5b5f
Compare
Description
What's new?
What kind of change does this PR introduce?