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

mendersoftware / workflows / 1166870661

02 Feb 2024 08:35AM UTC coverage: 70.929% (-8.8%) from 79.715%
1166870661

push

gitlab-ci

web-flow
Merge pull request #305 from alfrunes/MEN-7003

MEN-7003: Add "html" encoding option

6 of 22 new or added lines in 1 file covered. (27.27%)

234 existing lines in 8 files now uncovered.

1054 of 1486 relevant lines covered (70.93%)

5.23 hits per line

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

0.0
/app/worker/timer.go
1
// Copyright 2022 Northern.tech AS
2
//
3
//    Licensed under the Apache License, Version 2.0 (the "License");
4
//    you may not use this file except in compliance with the License.
5
//    You may obtain a copy of the License at
6
//
7
//        http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//    Unless required by applicable law or agreed to in writing, software
10
//    distributed under the License is distributed on an "AS IS" BASIS,
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//    See the License for the specific language governing permissions and
13
//    limitations under the License.
14

15
package worker
16

17
import "time"
18

19
// reusableTimer allows using the time.After interface without reallocations.
20
type reusableTimer time.Timer
21

UNCOV
22
func (t *reusableTimer) After(d time.Duration) <-chan time.Time {
×
UNCOV
23
        tt := (*time.Timer)(t)
×
UNCOV
24
        if !tt.Stop() {
×
UNCOV
25
                <-tt.C
×
UNCOV
26
        }
×
UNCOV
27
        tt.Reset(d)
×
UNCOV
28
        return tt.C
×
29
}
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

© 2025 Coveralls, Inc