MCPcopy Create free account
hub / github.com/google/git-appraise / Hash

Method Hash

review/comment/comment.go:185–188  ·  view source on GitHub ↗

Hash returns the SHA1 hash of a review comment.

()

Source from the content-addressed store, hash-verified

183
184// Hash returns the SHA1 hash of a review comment.
185func (comment Comment) Hash() (string, error) {
186 bytes, err := comment.serialize()
187 return fmt.Sprintf("%x", sha1.Sum(bytes)), err
188}
189
190// Set implenents flag.Value for the Range type
191func (r *Range) Set(s string) error {

Callers 3

TestBuildCommentThreadsFunction · 0.95
VerifyMethod · 0.45
ParseAllValidFunction · 0.45

Calls 1

serializeMethod · 0.95

Tested by 1

TestBuildCommentThreadsFunction · 0.76