MCPcopy Create free account
hub / github.com/google/gapid / IsValid

Method IsValid

core/git/sha.go:25–25  ·  view source on GitHub ↗

IsValid returns true if the identifier is non-zero.

()

Source from the content-addressed store, hash-verified

23
24// IsValid returns true if the identifier is non-zero.
25func (i SHA) IsValid() bool { return id.ID(i).IsValid() }
26
27// Parse parses the identifier string.
28func (i *SHA) Parse(str string) error { return ((*id.ID)(i)).Parse(str) }

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected