MCPcopy Index your code
hub / github.com/coder/coder / Equal

Method Equal

tailnet/proto/compare.go:10–20  ·  view source on GitHub ↗

Equal returns true if the nodes have the same contents

(o *Node)

Source from the content-addressed store, hash-verified

8
9// Equal returns true if the nodes have the same contents
10func (s *Node) Equal(o *Node) (bool, error) {
11 sBytes, err := gProto.Marshal(s)
12 if err != nil {
13 return false, err
14 }
15 oBytes, err := gProto.Marshal(o)
16 if err != nil {
17 return false, err
18 }
19 return bytes.Equal(sBytes, oBytes), nil
20}

Callers 15

TestFakeSinkFunction · 0.45
getMetricFunction · 0.45
TestFakeFunction · 0.45
TestStdbufFunction · 0.45
TestWorkspaceUpdatesFunction · 0.45
TestTailnetFunction · 0.45
TestConn_PreferredDERPFunction · 0.45

Implementers 13

ACLMappingVarcoderd/rbac/regosql/acl_mapping_var.go
AstBooleancoderd/rbac/regosql/sqltypes/bool.go
AstNumbercoderd/rbac/regosql/sqltypes/number.go
invalidNodecoderd/rbac/regosql/sqltypes/node.go
ASTArraycoderd/rbac/regosql/sqltypes/array.go
AstStringcoderd/rbac/regosql/sqltypes/string.go
memberOfcoderd/rbac/regosql/sqltypes/member.go
equalitycoderd/rbac/regosql/sqltypes/equality.
astParenthesiscoderd/rbac/regosql/sqltypes/parens.go
astStringVarcoderd/rbac/regosql/sqltypes/variable.
alwaysFalsecoderd/rbac/regosql/sqltypes/always_fa
astUUIDVarcoderd/rbac/regosql/sqltypes/uuid.go

Calls 1

MarshalMethod · 0.45

Tested by 15

TestFakeSinkFunction · 0.36
TestFakeFunction · 0.36
TestStdbufFunction · 0.36
TestWorkspaceUpdatesFunction · 0.36
TestTailnetFunction · 0.36
TestConn_PreferredDERPFunction · 0.36
TestConn_UpdateDERPFunction · 0.36