MCPcopy
hub / github.com/tinylib/msgp / Equal

Method Equal

_generated/newtime.go:16–37  ·  view source on GitHub ↗
(t2 NewTime)

Source from the content-addressed store, hash-verified

14}
15
16func (t1 NewTime) Equal(t2 NewTime) bool {
17 if !t1.T.Equal(t2.T) {
18 return false
19 }
20 if len(t1.Array) != len(t2.Array) {
21 return false
22 }
23 for i := range t1.Array {
24 if !t1.Array[i].Equal(t2.Array[i]) {
25 return false
26 }
27 }
28 if len(t1.Map) != len(t2.Map) {
29 return false
30 }
31 for k, v := range t1.Map {
32 if !t2.Map[k].Equal(v) {
33 return false
34 }
35 }
36 return true
37}

Callers 15

TestNewTimeFunction · 0.95
TestNewTimeRandomFunction · 0.95
TestReadBytesBytesFunction · 0.45
TestReadZCBytesFunction · 0.45
TestReadMapKeyFunction · 0.45
TestReadTimeBytesFunction · 0.45
TestReadWriteFileFunction · 0.45
TestNumberFunction · 0.45
TestReadIntfFunction · 0.45
TestReadBytesFunction · 0.45
TestTimeFunction · 0.45
TestCopyNextFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestNewTimeFunction · 0.76
TestNewTimeRandomFunction · 0.76
TestReadBytesBytesFunction · 0.36
TestReadZCBytesFunction · 0.36
TestReadMapKeyFunction · 0.36
TestReadTimeBytesFunction · 0.36
TestReadWriteFileFunction · 0.36
TestNumberFunction · 0.36
TestReadIntfFunction · 0.36
TestReadBytesFunction · 0.36
TestTimeFunction · 0.36
TestCopyNextFunction · 0.36