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

paulmthompson / WhiskerToolbox / 16305883990

15 Jul 2025 10:41PM UTC coverage: 74.374% (-0.2%) from 74.559%
16305883990

push

github

paulmthompson
add time frame conversion method for digital interval series

2 of 2 new or added lines in 1 file covered. (100.0%)

21 existing lines in 3 files now uncovered.

15141 of 20358 relevant lines covered (74.37%)

2100.54 hits per line

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

21.21
/src/WhiskerToolbox/DataManager/utils/TableView/interfaces/IRowSelector.cpp
1
#include "IRowSelector.h"
2

3
// IndexSelector implementation
4
IndexSelector::IndexSelector(std::vector<size_t> indices)
×
5
    : m_indices(std::move(indices))
×
6
{
7
}
×
8

9
size_t IndexSelector::getRowCount() const {
×
10
    return m_indices.size();
×
11
}
12

13
const std::vector<size_t>& IndexSelector::getIndices() const {
×
14
    return m_indices;
×
15
}
16

UNCOV
17
RowDescriptor IndexSelector::getDescriptor(size_t row_index) const {
×
18
    if (row_index < m_indices.size()) {
×
19
        return m_indices[row_index];
×
20
    }
21
    return std::monostate{};
×
22
}
23

24
// TimestampSelector implementation
UNCOV
25
TimestampSelector::TimestampSelector(std::vector<double> timestamps)
×
UNCOV
26
    : m_timestamps(std::move(timestamps))
×
27
{
28
}
×
29

UNCOV
30
size_t TimestampSelector::getRowCount() const {
×
UNCOV
31
    return m_timestamps.size();
×
32
}
33

UNCOV
34
const std::vector<double>& TimestampSelector::getTimestamps() const {
×
UNCOV
35
    return m_timestamps;
×
36
}
37

UNCOV
38
RowDescriptor TimestampSelector::getDescriptor(size_t row_index) const {
×
UNCOV
39
    if (row_index < m_timestamps.size()) {
×
UNCOV
40
        return m_timestamps[row_index];
×
41
    }
UNCOV
42
    return std::monostate{};
×
43
}
44

45
// IntervalSelector implementation
46
IntervalSelector::IntervalSelector(std::vector<TimeFrameInterval> intervals)
5✔
47
    : m_intervals(std::move(intervals))
5✔
48
{
49
}
5✔
50

51
size_t IntervalSelector::getRowCount() const {
3✔
52
    return m_intervals.size();
3✔
53
}
54

55
const std::vector<TimeFrameInterval>& IntervalSelector::getIntervals() const {
8✔
56
    return m_intervals;
8✔
57
}
58

UNCOV
59
RowDescriptor IntervalSelector::getDescriptor(size_t row_index) const {
×
UNCOV
60
    if (row_index < m_intervals.size()) {
×
UNCOV
61
        return m_intervals[row_index];
×
62
    }
UNCOV
63
    return std::monostate{};
×
64
}
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