mirror of
https://github.com/ceph/go-ceph
synced 2024-12-14 10:25:45 +00:00
d6a88f65b7
Applications will mostly want to show names of features to their users, and not just a few bits. With the FeatureSet functions it becomes simple for applications to map the name of a feature to bits, and the other way around Signed-off-by: Niels de Vos <ndevos@redhat.com>
16 lines
251 B
Go
16 lines
251 B
Go
// +build !luminous
|
|
|
|
package rbd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetFeaturesInMimic(t *testing.T) {
|
|
f, ok := featureNameToBit[FeatureNameOperations]
|
|
assert.True(t, ok)
|
|
assert.Equal(t, f, FeatureOperations)
|
|
}
|