mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 05:07:38 +08:00
17 lines
228 B
Go
17 lines
228 B
Go
package uuid_test
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
. "github.com/twinj/uuid"
|
|
"testing"
|
|
)
|
|
|
|
func TestInit(t *testing.T) {
|
|
assert.Panics(t, didInitPanic, "Should panic")
|
|
}
|
|
|
|
func didInitPanic() {
|
|
Init()
|
|
Init()
|
|
}
|