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

go-spatial / tegola / 607999c17

26 Mar 2025 11:55PM UTC coverage: 40.462%. Remained the same
607999c17

Pull #1041

github

web-flow
build(deps): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3

Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis) from 9.7.0 to 9.7.3.
- [Release notes](https://github.com/redis/go-redis/releases)
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/go-redis/compare/v9.7.0...v9.7.3)

---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1041: build(deps): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3

6656 of 16450 relevant lines covered (40.46%)

219.29 hits per line

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

0.0
/basic/go_string.go
1
package basic
2

3
import (
4
        "fmt"
5
        "strings"
6
)
7

8
/*
9

10
   basic.Line{ // len(1000); direction: Counter-Clockwise.
11
      {100,100}, {100,010}, … // 0 - 40
12
      … // 40 …
13
   }
14

15

16
*/
17

18
const DefaultPointFormat = "{%06f,%06f}, "
19

20
func DefaultPointDecorator(pt Point) string { return fmt.Sprintf(DefaultPointFormat, pt[0], pt[1]) }
×
21
func (l Line) GoStringTypeDecorated(withType bool, indent int, lineComment string, pointDecorator func(pt Point) string) string {
×
22
        const (
×
23
                numberOfPointsPerLine = 10
×
24
        )
×
25

×
26
        const (
×
27
                lineFormat      = "%v%v{ // basic.Line len(%06d) direction(%v)%v.\n%v%v}"
×
28
                pointLineFormat = "%v\t%v // %06d — %06d\n"
×
29
        )
×
30
        typeName := ""
×
31
        if withType {
×
32
                typeName = "basic.Line"
×
33
        }
×
34
        if pointDecorator == nil {
×
35
                pointDecorator = DefaultPointDecorator
×
36
        }
×
37
        indentString := strings.Repeat("\t", indent)
×
38

×
39
        var byteString, bytestr []rune
×
40
        lastI := -1
×
41
        for i, p := range l {
×
42
                byteString = append(byteString, []rune(pointDecorator(p))...)
×
43

×
44
                if (i+1)%numberOfPointsPerLine == 0 {
×
45
                        bytestr = append(bytestr, []rune(fmt.Sprintf(pointLineFormat, indentString, string(byteString), lastI+1, i))...)
×
46
                        byteString = byteString[:0] // truncate string.
×
47
                        lastI = i
×
48
                }
×
49
        }
50
        if len(byteString) > 0 {
×
51
                bytestr = append(bytestr, []rune(fmt.Sprintf(pointLineFormat, indentString, string(byteString), lastI+1, len(l)-1))...)
×
52
                byteString = byteString[:0] // truncate string.
×
53
        }
×
54

55
        return fmt.Sprintf(lineFormat, indentString, typeName, len(l), l.Direction(), lineComment, string(bytestr), indentString)
×
56
}
57
func (l Line) GoStringTyped(withType bool, indent int, lineComment string) string {
×
58
        return l.GoStringTypeDecorated(withType, indent, lineComment, nil)
×
59
}
×
60

61
func (l Line) GoString() string { return l.GoStringTyped(true, 0, "") }
×
62

63
/*
64
basic.Polygon { // basic.Polygon len(1);
65
   { lines… },
66
}
67
*/
68
func (p Polygon) GoStringTypeDecorated(withType bool, indent int, lineComment string, pointDecorator func(pt Point) string) string {
×
69
        const (
×
70
                polygonFormat = "%v%v{ // basic.Polygon len(%06d)%v.\n%v\n%v}"
×
71
        )
×
72
        typeName := ""
×
73
        if withType {
×
74
                typeName = "basic.Polygon"
×
75
        }
×
76
        indentString := strings.Repeat("\t", indent)
×
77
        lines := ""
×
78
        for i, line := range p {
×
79
                lines += line.GoStringTypeDecorated(false, indent+1, fmt.Sprintf(" line(%02d)", i), pointDecorator) + ",\n"
×
80
        }
×
81
        return fmt.Sprintf(polygonFormat, indentString, typeName, len(p), lineComment, lines, indentString)
×
82
}
83
func (p Polygon) GoStringTyped(withType bool, indent int, lineComment string) string {
×
84
        return p.GoStringTypeDecorated(withType, indent, lineComment, nil)
×
85
}
×
86
func (p Polygon) GoString() string { return p.GoStringTyped(true, 0, "") }
×
87

88
func (p MultiPolygon) GoStringTyped(withType bool, indent int, lineComment string) string {
×
89
        const (
×
90
                polygonFormat = "%v%v{ // basic.MultiPolygon len(%02d)%v.\n%v\n%v}"
×
91
        )
×
92
        typeName := ""
×
93
        if withType {
×
94
                typeName = "basic.MultiPolygon"
×
95
        }
×
96
        indentString := strings.Repeat("\t", indent)
×
97
        polygons := ""
×
98
        for i, polygon := range p {
×
99
                polygons += polygon.GoStringTyped(false, indent+1, fmt.Sprintf(" polygon(%02d)", i)) + ",\n"
×
100
        }
×
101
        return fmt.Sprintf(polygonFormat, indentString, typeName, len(p), lineComment, polygons, indentString)
×
102
}
103
func (p MultiPolygon) GoString() string { return p.GoStringTyped(true, 0, "") }
×
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