Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/labstack/gommon
/ TestBytesParseErrors
Function
TestBytesParseErrors
bytes/bytes_test.go:67–72 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
65
}
66
67
func
TestBytesParseErrors(t *testing.T) {
68
_, err := Parse(
"B999"
)
69
if
assert.Error(t, err) {
70
assert.EqualError(t, err,
"error parsing value=B999"
)
71
}
72
}
73
74
func
TestFloats(t *testing.T) {
75
// From string:
Callers
nothing calls this directly
Calls
2
Parse
Function · 0.85
Error
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…