mirror of https://github.com/grafana/grafana.git
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))
|
||
|
}
|