MCPcopy Index your code
hub / github.com/CodisLabs/codis / TestByteSizeError

Function TestByteSizeError

pkg/utils/bytesize/bytesize_test.go:38–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestByteSizeError(t *testing.T) {
39 var err error
40 _, err = Parse("--1")
41 assert.Must(errors.Equal(err, ErrBadByteSize))
42 _, err = Parse("hello world")
43 assert.Must(errors.Equal(err, ErrBadByteSize))
44 _, err = Parse("123.132.32")
45 assert.Must(errors.Equal(err, ErrBadByteSize))
46}

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.70

Tested by

no test coverage detected