PageRenderTime 80ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/uuid_test.go

https://bitbucket.org/agallego/uuid
Go | 14 lines | 12 code | 2 blank | 0 comment | 1 complexity | 043edd3581310a71be0151b23abf65da MD5 | raw file
  1. package uuid
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestUUIDV4(t *testing.T) {
  7. fmt.Println("Testing UUID.V4 against regex")
  8. str := V4().String()
  9. if !ValidString(str) {
  10. t.Fatalf("Failed to validate uuid string")
  11. }
  12. }