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

paulmthompson / WhiskerToolbox / 15430655463

04 Jun 2025 12:26AM UTC coverage: 40.974% (+17.1%) from 23.832%
15430655463

push

github

paulmthompson
fix self copy with mask data

5 of 5 new or added lines in 2 files covered. (100.0%)

945 existing lines in 24 files now uncovered.

3003 of 7329 relevant lines covered (40.97%)

731.35 hits per line

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

44.44
/src/WhiskerToolbox/DataManager/TimeFrame.cpp
1

2
#include "TimeFrame.hpp"
3

4
TimeFrame::TimeFrame(std::vector<int> const & times)
10✔
5
{
6
    _times = times;
10✔
7
    _total_frame_count = static_cast<int>(times.size());
10✔
8
}
10✔
9

UNCOV
10
float getTimeIndexForSeries(int64_t time_value_in_source_frame,
×
11
                            TimeFrame const & source_time_frame,
12
                            TimeFrame const & destination_time_frame) {
13
    // Check if the source frame of the time value is the same object instance as the series' data frame.
14
    // This comparison by address assumes that if they are conceptually the "same" frame,
15
    // they would be represented by the same object instance in this function's context.
UNCOV
16
    if (&source_time_frame == &destination_time_frame) {
×
17
        // Frames are the same. The time value can be used directly.
UNCOV
18
        return time_value_in_source_frame;
×
19
    } else {
20
        // Frames are different.
21
        // The `time_value_in_source_frame` is a time in the `source_value_frame`.
22
        // We need to find the corresponding index in the `destination_frame`
23
        // that is closest to this absolute time value.
UNCOV
24
        auto index_in_series_frame = destination_time_frame.getIndexAtTime(time_value_in_source_frame);
×
UNCOV
25
        return index_in_series_frame;
×
26
    }
27
}
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