mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 14:12:15 +08:00
14 lines
248 B
Go
14 lines
248 B
Go
package legacy
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestVersionHacks(t *testing.T) {
|
|
rv := getResourceVersion(123, 456)
|
|
require.Equal(t, int64(1230000456), rv)
|
|
require.Equal(t, int64(456), getVersionFromRV(rv))
|
|
}
|