• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bcpearce / hass-motion-detection-addon / 21126887229

19 Jan 2026 05:54AM UTC coverage: 17.99% (-32.0%) from 49.971%
21126887229

Pull #26

github

web-flow
Merge c98d1d60e into 0206cb867
Pull Request #26: Additional test coverage

292 of 1865 branches covered (15.66%)

Branch coverage included in aggregate %.

8 of 22 new or added lines in 3 files covered. (36.36%)

827 existing lines in 29 files now uncovered.

347 of 1687 relevant lines covered (20.57%)

28.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Callback/SyncHassHandler.cxx
1
#include "Logger.h"
2

3
#include "Callback/SyncHassHandler.h"
4

5
#include <chrono>
6
#include <format>
7
#include <iostream>
8
#include <string_view>
9

10
#include "Callback/Json.h"
11
#include "Util/BufferOperations.h"
12
#include "Util/CurlWrapper.h"
13

14
using namespace std::chrono_literals;
15
using namespace std::string_literals;
16
using namespace std::string_view_literals;
17

18
namespace callback {
19

UNCOV
20
SyncHassHandler::SyncHassHandler(const boost::url &url,
×
21
                                 const std::string &token,
UNCOV
22
                                 const std::string &entityId)
×
UNCOV
23
    : BaseHassHandler(url, token, entityId) {}
×
24

UNCOV
25
void SyncHassHandler::UpdateState_Impl(std::string_view state,
×
26
                                       const json &attributes) {
UNCOV
27
  thread_local std::string payload;
×
UNCOV
28
  thread_local util::CurlWrapper wCurl;
×
29

UNCOV
30
  PrepareGetRequest(wCurl, buf_);
×
UNCOV
31
  wCurl(curl_easy_perform);
×
UNCOV
32
  HandleGetResponse(wCurl, buf_);
×
33

UNCOV
34
  UpdateStateInternal(state, attributes);
×
35

UNCOV
36
  PreparePostRequest(wCurl, buf_, payload);
×
UNCOV
37
  wCurl(curl_easy_perform);
×
UNCOV
38
  HandlePostResponse(wCurl, buf_);
×
UNCOV
39
}
×
40

41
} // namespace callback
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc