Files
grafana/pkg/storage/unified/resource/keys_test.go
2024-07-03 08:59:09 -07:00

22 lines
365 B
Go

package resource
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestKeyMatching(t *testing.T) {
t.Run("key matching", func(t *testing.T) {
require.True(t, matchesQueryKey(&ResourceKey{
Group: "ggg",
Resource: "rrr",
Namespace: "ns",
}, &ResourceKey{
Group: "ggg",
Resource: "rrr",
Namespace: "ns",
}))
})
}