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

Method Equal

backend/generated-go/v1/issue_service_equal.pb.go:573–608  ·  view source on GitHub ↗
(y *IssueComment)

Source from the content-addressed store, hash-verified

571}
572
573func (x *IssueComment) Equal(y *IssueComment) bool {
574 if x == y {
575 return true
576 }
577 if x == nil || y == nil {
578 return x == nil && y == nil
579 }
580 if x.Name != y.Name {
581 return false
582 }
583 if x.Comment != y.Comment {
584 return false
585 }
586 if x.Payload != y.Payload {
587 return false
588 }
589 if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
590 return false
591 }
592 if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
593 return false
594 }
595 if x.Creator != y.Creator {
596 return false
597 }
598 if !x.GetApproval().Equal(y.GetApproval()) {
599 return false
600 }
601 if !x.GetIssueUpdate().Equal(y.GetIssueUpdate()) {
602 return false
603 }
604 if !x.GetPlanUpdate().Equal(y.GetPlanUpdate()) {
605 return false
606 }
607 return true
608}

Callers

nothing calls this directly

Calls 4

GetApprovalMethod · 0.95
GetIssueUpdateMethod · 0.95
GetPlanUpdateMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected