MCPcopy Create free account
hub / github.com/bytebase/bytebase / Equal

Method Equal

backend/generated-go/store/setting_equal.pb.go:751–771  ·  view source on GitHub ↗
(y *EmailSetting)

Source from the content-addressed store, hash-verified

749}
750
751func (x *EmailSetting) Equal(y *EmailSetting) bool {
752 if x == y {
753 return true
754 }
755 if x == nil || y == nil {
756 return x == nil && y == nil
757 }
758 if x.From != y.From {
759 return false
760 }
761 if x.FromName != y.FromName {
762 return false
763 }
764 if x.Type != y.Type {
765 return false
766 }
767 if !x.GetSmtp().Equal(y.GetSmtp()) {
768 return false
769 }
770 return true
771}

Callers

nothing calls this directly

Calls 2

GetSmtpMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected