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

paulmthompson / WhiskerToolbox / 14384959116

10 Apr 2025 03:57PM UTC coverage: 13.06%. Remained the same
14384959116

push

github

paulmthompson
fix more clang tidy problems in datamanager

0 of 11 new or added lines in 3 files covered. (0.0%)

210 of 1608 relevant lines covered (13.06%)

1.25 hits per line

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

0.0
/src/WhiskerToolbox/DataManager/Masks/Mask_Data.cpp
1
#include "Mask_Data.hpp"
2

3
#include <iostream>
4
#include <string>
5

6

7
void MaskData::clearMasksAtTime(int const time) {
×
8
    _data[time].clear();
×
9
    notifyObservers();
×
10
}
×
11

12
void MaskData::addMaskAtTime(int const time, std::vector<float> const & x, std::vector<float> const & y) {
×
13
    auto new_mask = create_mask(x, y);
×
14

15
    _data[time].push_back(new_mask);
×
16
    notifyObservers();
×
17
}
×
18

NEW
19
void MaskData::addMaskAtTime(int const time, std::vector<Point2D<float>> mask) {
×
20
    _data[time].push_back(std::move(mask));
×
21
    notifyObservers();
×
22
}
×
23

24
std::vector<Mask2D> const & MaskData::getMasksAtTime(int const time) const {
×
25
    // [] operator is not const because it inserts if mask is not present
26
    if (_data.find(time) != _data.end()) {
×
27
        return _data.at(time);
×
28
    } else {
29
        return _empty;
×
30
    }
31
}
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