mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 03:09:26 +08:00
22 lines
365 B
Go
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",
|
|
}))
|
|
})
|
|
}
|