MCPcopy
hub / github.com/google/uuid / Error

Method Error

uuid.go:49–51  ·  uuid.go::invalidLengthError.Error
()

Source from the content-addressed store, hash-verified

47type invalidLengthError struct{ len int }
48
49func (err invalidLengthError) Error() string {
50 return fmt.Sprintf("invalid UUID length: %d", err.len)
51}
52
53// IsInvalidLengthError is matcher function for custom error invalidLengthError
54func IsInvalidLengthError(err error) bool {

Callers 11

TestScanFunction · 0.80
TestValueFunction · 0.80
TestNullUUIDScanFunction · 0.80
TestVersion1Function · 0.80
TestNodeFunction · 0.80
TestNodeIDFunction · 0.80
TestWrongLengthFunction · 0.80
TestValidateFunction · 0.80
TestVersion6Function · 0.80
MustParseFunction · 0.80
randomBitsFunction · 0.80

Calls

no outgoing calls

Tested by 9

TestScanFunction · 0.64
TestValueFunction · 0.64
TestNullUUIDScanFunction · 0.64
TestVersion1Function · 0.64
TestNodeFunction · 0.64
TestNodeIDFunction · 0.64
TestWrongLengthFunction · 0.64
TestValidateFunction · 0.64
TestVersion6Function · 0.64