| 1 |
package uuid_test |
| 2 |
|
| 3 |
import ( |
| 4 |
"github.com/stretchr/testify/assert" |
| 5 |
. "github.com/twinj/uuid" |
| 6 |
"testing" |
| 7 |
) |
| 8 |
|
| 9 |
func TestInit(t *testing.T) { |
| 10 |
assert.Panics(t, didInitPanic, "Should panic") |
| 11 |
} |
| 12 |
|
| 13 |
func didInitPanic() { |
| 14 |
Init() |
| 15 |
Init() |
| 16 |
} |