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

mendersoftware / deployments / 929748838

pending completion
929748838

Pull #884

gitlab-ci

merlin-northern
test: db units for update release.

Ticket: MEN-6593
Signed-off-by: Peter Grzybowski <peter@northern.tech>
Pull Request #884: feat: release notes: update and store.

268 of 340 new or added lines in 6 files covered. (78.82%)

415 existing lines in 5 files now uncovered.

7650 of 9637 relevant lines covered (79.38%)

33.69 hits per line

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

0.0
/model/error.go
1
// Copyright 2020 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 model
16

17
import "fmt"
18

19
type ConflictError struct {
20
        Conflicts string
21
        Err       error
22
}
23

UNCOV
24
func NewConflictError(errMsg, conflicts string) *ConflictError {
×
UNCOV
25
        return &ConflictError{
×
UNCOV
26
                Conflicts: conflicts,
×
UNCOV
27
                Err:       fmt.Errorf("%s: %s", errMsg, conflicts),
×
UNCOV
28
        }
×
UNCOV
29
}
×
30

31
func (ce *ConflictError) Error() string {
×
32
        return ce.Err.Error()
×
33
}
×
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