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

tarantool / go-tarantool / 10884716724

16 Sep 2024 01:21PM UTC coverage: 73.844% (+0.08%) from 73.765%
10884716724

push

github

oleg-jukovec
pool: implemented Role Stringer interface

implemented Role Stringer interface for human-readable printing

3 of 5 new or added lines in 1 file covered. (60.0%)

5940 of 8044 relevant lines covered (73.84%)

5052.84 hits per line

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

60.0
/pool/role_string.go
1
// Code generated by "stringer -type Role -linecomment"; DO NOT EDIT.
2

3
package pool
4

5
import "strconv"
6

7
func _() {
8
        // An "invalid array index" compiler error signifies that the constant values have changed.
9
        // Re-run the stringer command to generate them again.
10
        var x [1]struct{}
11
        _ = x[UnknownRole-0]
12
        _ = x[MasterRole-1]
13
        _ = x[ReplicaRole-2]
14
}
15

16
const _Role_name = "unknownmasterreplica"
17

18
var _Role_index = [...]uint8{0, 7, 13, 20}
19

20
func (i Role) String() string {
3✔
21
        if i >= Role(len(_Role_index)-1) {
3✔
NEW
22
                return "Role(" + strconv.FormatInt(int64(i), 10) + ")"
×
NEW
23
        }
×
24
        return _Role_name[_Role_index[i]:_Role_index[i+1]]
3✔
25
}
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