cap: rename FromUint64 to FromBitmap

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2021-02-25 15:02:10 +09:00
parent af4c55fa4a
commit 9822173354
2 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ func TestCapsList(t *testing.T) {
assert.Len(t, caps59, 41)
}
func TestFromUint64(t *testing.T) {
func TestFromBitmap(t *testing.T) {
type testCase struct {
comment string
v uint64
@@ -72,7 +72,7 @@ func TestFromUint64(t *testing.T) {
}
for _, tc := range testCases {
knownNames, unknown := FromUint64(tc.v)
knownNames, unknown := FromBitmap(tc.v)
t.Logf("[%s] v=0x%x, got=%+v (%d entries), unknown=%v",
tc.comment, tc.v, knownNames, len(knownNames), unknown)
assert.Equal(t, tc.knownNames, knownNames)