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

mendersoftware / mender-server / 1568133911

01 Dec 2024 06:50PM UTC coverage: 73.502% (+0.7%) from 72.789%
1568133911

Pull #241

gitlab-ci

web-flow
chore: Bump the backend-golang-dependencies group

Bumps the backend-golang-dependencies group in /backend with 13 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/Azure/azure-sdk-for-go/sdk/storage/azblob](https://github.com/Azure/azure-sdk-for-go) | `1.4.1` | `1.5.0` |
| [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.32.3` | `1.32.5` |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.28.1` | `1.28.5` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.17.42` | `1.17.46` |
| [github.com/aws/aws-sdk-go-v2/service/iot](https://github.com/aws/aws-sdk-go-v2) | `1.59.3` | `1.61.0` |
| [github.com/aws/aws-sdk-go-v2/service/iotdataplane](https://github.com/aws/aws-sdk-go-v2) | `1.26.3` | `1.26.6` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.66.2` | `1.69.0` |
| [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) | `4.5.0` | `4.5.1` |
| [github.com/stretchr/testify](https://github.com/stretchr/testify) | `1.9.0` | `1.10.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.28.0` | `0.29.0` |
| [golang.org/x/net](https://github.com/golang/net) | `0.30.0` | `0.31.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.26.0` | `0.27.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.25.0` | `0.26.0` |


Updates `github.com/Azure/azure-sdk-for-go/sdk/storage/azblob` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/storage/azblob/v1.4.1...sdk/azcore/v1.5.0)

Updates `github.com/aws/aws-sdk-go-v2` from 1.32.3 to 1.32.5
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.32.3...v1.32.5)

Updat... (continued)
Pull Request #241: chore: Bump the backend-golang-dependencies group in /backend with 13 updates

4163 of 6052 branches covered (68.79%)

Branch coverage included in aggregate %.

39902 of 53899 relevant lines covered (74.03%)

16.7 hits per line

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

94.44
/backend/services/workflows/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

22
func newStoppedTimer() *reusableTimer {
2✔
23
        t := (*reusableTimer)(time.NewTimer(0))
2✔
24
        t.Stop()
2✔
25
        return t
2✔
26
}
2✔
27

28
// Stop ensures that the timer is stopped and the channel is cleared.
29
func (t *reusableTimer) Stop() {
2✔
30
        if (*time.Timer)(t).Stop() {
4✔
31
                select {
2✔
32
                case <-t.C:
×
33
                default:
2✔
34
                }
35
        }
36
}
37

38
func (t *reusableTimer) Reset(d time.Duration) {
2✔
39
        t.Stop()
2✔
40
        (*time.Timer)(t).Reset(d)
2✔
41
}
2✔
42

43
func (t *reusableTimer) After(d time.Duration) <-chan time.Time {
2✔
44
        t.Reset(d)
2✔
45
        return t.C
2✔
46
}
2✔
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