MCPcopy Create free account
hub / github.com/gogs/gogs / ValidOID

Function ValidOID

internal/lfsutil/oid.go:19–21  ·  view source on GitHub ↗

ValidOID returns true if given oid is valid.

(oid OID)

Source from the content-addressed store, hash-verified

17
18// ValidOID returns true if given oid is valid.
19func ValidOID(oid OID) bool {
20 return oidRe.MatchString(string(oid))
21}

Callers 5

serveVerifyMethod · 0.92
verifyOIDFunction · 0.92
serveBatchFunction · 0.92
UploadMethod · 0.85
TestValidOIDFunction · 0.85

Calls 2

stringFunction · 0.85
MatchStringMethod · 0.80

Tested by 1

TestValidOIDFunction · 0.68