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

echocat / caretakerd / 13988158533

21 Mar 2025 09:01AM UTC coverage: 8.837% (-1.3%) from 10.12%
13988158533

push

github

web-flow
Bump github.com/tdewolff/minify/v2 from 2.21.3 to 2.22.3 (#65)

* Bump github.com/tdewolff/minify/v2 from 2.21.3 to 2.22.3

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.21.3 to 2.22.3.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.21.3...v2.22.3)

---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Adjust used go dependencies

* Adjust used go dependencies

* Adjust used go dependencies

* Adjusted to latest changes

* Adjusted to latest changes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gregor Noczinski <gregor@noczinski.eu>

544 of 6156 relevant lines covered (8.84%)

2.67 hits per line

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

0.0
/errors/error.go
1
package errors
2

3
import (
4
        "fmt"
5
        "github.com/echocat/caretakerd/stack"
6
        "reflect"
7
)
8

9
// Error represents a GO error but with more features
10
// - such as a cause and a call stack.
11
type Error struct {
12
        message string
13
        cause   interface{}
14
        stack   stack.Stack
15
}
16

17
// New creates a new instance of Error.
18
func New(message string, a ...interface{}) Error {
×
19
        var targetMessage string
×
20
        if len(a) == 0 {
×
21
                targetMessage = message
×
22
        } else {
×
23
                targetMessage = fmt.Sprintf(message, a...)
×
24
        }
×
25
        result := Error{
×
26
                message: targetMessage,
×
27
                stack:   stack.CaptureStack(1),
×
28
        }
×
29
        return result
×
30
}
31

32
func (instance Error) String() string {
×
33
        return reflect.TypeOf(instance).Name() + ": " + instance.Message()
×
34
}
×
35

36
func (instance Error) Error() string {
×
37
        return stack.ErrorMessageFor(instance)
×
38
}
×
39

40
// Message queries the error message.
41
func (instance Error) Message() string {
×
42
        return instance.message
×
43
}
×
44

45
// Cause queries the cause that causes this error.
46
// If there is no cause nil is returned.
47
func (instance Error) Cause() interface{} {
×
48
        return instance.cause
×
49
}
×
50

51
// Stack queries the stack at the point this Error instance was created.
52
func (instance Error) Stack() stack.Stack {
×
53
        return instance.stack
×
54
}
×
55

56
// CausedBy is a shortcut for Cause to use a builder pattern.
57
func (instance Error) CausedBy(what interface{}) Error {
×
58
        instance.cause = what
×
59
        return instance
×
60
}
×
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