• 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
/include/VideoSource/Http.h
1
#pragma once
2

3
#include "WindowsWrapper.h"
4

5
#include "Util/CurlWrapper.h"
6
#include "VideoSource.h"
7

8
#include <boost/url.hpp>
9

10
#include <array>
11
#include <chrono>
12
#include <thread>
13
#include <vector>
14

15
namespace video_source {
16

17
class HttpVideoSource : public VideoSource {
18
public:
19
  explicit HttpVideoSource(const boost::url &url,
20
                           const std::string &token = {});
21
  HttpVideoSource(const boost::url &url, const std::string &username,
22
                  const std::string &password);
UNCOV
23
  ~HttpVideoSource() override = default;
×
24

25
  void StartStream(unsigned long long maxFrames =
26
                       std::numeric_limits<unsigned long long>::max()) override;
27
  void StopStream() override;
28
  [[nodiscard]] bool IsActive() override { return isActive_.load(); }
×
29

30
  Frame GetNextFrame();
31

UNCOV
32
  std::chrono::duration<long> timeout{5};
×
UNCOV
33
  std::chrono::milliseconds delayBetweenFrames{2'000};
×
34

35
private:
36
  boost::url url_;
37
  std::vector<char> buf_;
38
  util::CurlWrapper wCurl_;
39
  std::array<char, CURL_ERROR_SIZE> errBuf_;
40
  std::atomic_bool isActive_{false};
41
};
42

43
} // namespace video_source
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