MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Compare

Method Compare

IceFireDB-SQLProxy/pkg/mysql/mysql/mysql_gtid.go:147–155  ·  view source on GitHub ↗
(o IntervalSlice)

Source from the content-addressed store, hash-verified

145}
146
147func (s IntervalSlice) Compare(o IntervalSlice) int {
148 if s.Equal(o) {
149 return 0
150 } else if s.Contain(o) {
151 return 1
152 } else {
153 return -1
154 }
155}
156
157// Refer http://dev.mysql.com/doc/refman/5.6/en/replication-gtids-concepts.html
158type UUIDSet struct {

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.95
ContainMethod · 0.95

Tested by

no test coverage detected