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

go-spatial / tegola / 9801246d7

11 Mar 2025 09:07PM UTC coverage: 40.721% (-2.1%) from 42.815%
9801246d7

push

github

ARolek
fix non-constant format string calls to XXXfwq

0 of 4 new or added lines in 2 files covered. (0.0%)

344 existing lines in 25 files now uncovered.

6690 of 16429 relevant lines covered (40.72%)

214.41 hits per line

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

0.0
/maths/internal/assert/assert.go
1
package assert
2

3
type Equality struct {
4
        // Message is the prefix message for the assersion
5
        Message string
6
        // Expected is the expected value for the assersion
7
        Expected string
8
        // Got is the actual value
9
        Got string
10
        // Continue used to determine weather or not to continue with further assertions.
11
        IsEqual bool
12
}
13

14
func (e Equality) Error() string {
×
15
        return e.Message + ", Expected " + e.Expected + " Got " + e.Got
×
16
}
×
17
func (e Equality) String() string { return e.Error() }
×
18

UNCOV
19
func ErrorEquality(expErr, gotErr error) Equality {
×
UNCOV
20
        if expErr != gotErr {
×
21
                // could be because test.err == nil and err != nil.
×
22
                if expErr == nil && gotErr != nil {
×
23
                        return Equality{
×
24
                                "unexpected error",
×
25
                                "nil",
×
26
                                gotErr.Error(),
×
27
                                false,
×
28
                        }
×
29
                }
×
30
                if expErr != nil && gotErr == nil {
×
31
                        return Equality{
×
32
                                "expected error",
×
33
                                expErr.Error(),
×
34
                                "nil",
×
35
                                false,
×
36
                        }
×
37
                }
×
38
                if expErr.Error() != gotErr.Error() {
×
39
                        return Equality{
×
40
                                "incorrect error value",
×
41
                                expErr.Error(),
×
42
                                gotErr.Error(),
×
43
                                false,
×
44
                        }
×
45
                }
×
46
                return Equality{IsEqual: true}
×
47
        }
UNCOV
48
        if expErr != nil {
×
49
                // No need to look at other values, expected an error.
×
50
                return Equality{}
×
51
        }
×
UNCOV
52
        return Equality{IsEqual: true}
×
53
}
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