MCPcopy 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
67func 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
74func TestFloats(t *testing.T) {
75 // From string:

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…