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

mendersoftware / deployments / 1197570064

01 Mar 2024 06:24PM UTC coverage: 52.222% (-28.4%) from 80.645%
1197570064

Pull #998

gitlab-ci

web-flow
chore: bump github.com/Azure/azure-sdk-for-go/sdk/azcore

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.9.1 to 1.10.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/azcore/v1.9.1...sdk/azcore/v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #998: chore: bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.9.1 to 1.10.0

5218 of 9992 relevant lines covered (52.22%)

0.55 hits per line

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

27.78
/store/query.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 store
16

17
import (
18
        "errors"
19

20
        "github.com/mendersoftware/deployments/model"
21
)
22

23
type ListQuery struct {
24
        Skip         int
25
        Limit        int
26
        DeploymentID string
27
        Status       *string
28
}
29

30
func (l ListQuery) Validate() error {
1✔
31
        if l.Limit <= 0 {
1✔
32
                return errors.New("limit: must be a positive integer")
×
33
        }
×
34
        if l.DeploymentID == "" {
1✔
35
                return errors.New("deployment_id: cannot be blank")
×
36
        }
×
37
        if l.Status != nil {
1✔
38
                if *l.Status == model.DeviceDeploymentStatusPauseStr ||
×
39
                        *l.Status == model.DeviceDeploymentStatusActiveStr ||
×
40
                        *l.Status == model.DeviceDeploymentStatusFinishedStr {
×
41
                        return nil
×
42
                }
×
43
                stat := model.NewStatus(*l.Status)
×
44
                if stat == model.DeviceDeploymentStatusNull {
×
45
                        return errors.New("status: must be a valid value")
×
46
                }
×
47
        }
48
        return nil
1✔
49
}
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