Test: Changes are currently independent of the rest of this project. Tests can currently manually be run with "make test". CL is large, but poses no risk Change-Id: Ia77e073df077257cab96b7ca4e1d99a900d029b2
14 lines
320 B
Go
14 lines
320 B
Go
package constants
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNullUUID(t *testing.T) {
|
|
expected := "00000000-0000-0000-0000-000000000000"
|
|
assert.Equal(t, expected, NullUUID().String(), "Null UUID should be deterministic")
|
|
assert.Equal(t, NullUUID(), NullUUID(), "Equality verification")
|
|
}
|