size: warn about inaccurate results when objects with unknown size

This commit is contained in:
albertony
2022-04-06 14:15:07 +02:00
parent fe271a4e35
commit 86bd5f6922
7 changed files with 23 additions and 12 deletions

View File

@@ -451,8 +451,9 @@ func TestRcSize(t *testing.T) {
out, err := call.Fn(context.Background(), in)
require.NoError(t, err)
assert.Equal(t, rc.Params{
"count": int64(3),
"bytes": int64(120),
"count": int64(3),
"bytes": int64(120),
"sizeless": int64(0),
}, out)
}