MCPcopy Create free account
hub / github.com/google/go-github / equal

Method equal

tools/metadata/metadata.go:39–52  ·  view source on GitHub ↗
(other *operation)

Source from the content-addressed store, hash-verified

37}
38
39func (o *operation) equal(other *operation) bool {
40 if o.Name != other.Name || o.DocumentationURL != other.DocumentationURL {
41 return false
42 }
43 if len(o.OpenAPIFiles) != len(other.OpenAPIFiles) {
44 return false
45 }
46 for i := range o.OpenAPIFiles {
47 if o.OpenAPIFiles[i] != other.OpenAPIFiles[i] {
48 return false
49 }
50 }
51 return true
52}
53
54func (o *operation) clone() *operation {
55 return &operation{

Callers 1

operationsEqualFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected