MCPcopy Create free account
hub / github.com/Masterminds/structable / equals

Method equals

sqlite_ptr_test.go:22–27  ·  view source on GitHub ↗
(other *Movie)

Source from the content-addressed store, hash-verified

20}
21
22func (l *Movie) equals(other *Movie) bool {
23 return l.Id == other.Id &&
24 l.Title == other.Title &&
25 l.Budget == other.Budget &&
26 CompareStringPtr(l.Genre, other.Genre)
27}
28
29func CompareStringPtr(s1, s2 *string) bool {
30 switch {

Callers

nothing calls this directly

Calls 1

CompareStringPtrFunction · 0.85

Tested by

no test coverage detected