| 1 | package uuidscip-go gomod github.com/savsgio/gotils . `github.com/savsgio/gotils/uuid`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.20 testing/" |
| 5 | |
| 6 | "github.com/google/uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/" |
| 7 | ) |
| 8 | |
| 9 | func Test_V4scip-go gomod github.com/savsgio/gotils . `github.com/savsgio/gotils/uuid`/Test_V4().(t *testingscip-go gomod github.com/golang/go/src go1.20 testing/.Tscip-go gomod github.com/golang/go/src go1.20 testing/T#) { |
| 10 | value := V4scip-go gomod github.com/savsgio/gotils . `github.com/savsgio/gotils/uuid`/V4().() |
| 11 | |
| 12 | if _, err := uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.Parsescip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/Parse().(value); err != nil { |
| 13 | t.Errorfscip-go gomod github.com/golang/go/src go1.20 testing/common#Errorf().("V4() == %s, invalid value", value) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func Test_V4Bytesscip-go gomod github.com/savsgio/gotils . `github.com/savsgio/gotils/uuid`/Test_V4Bytes().(t *testingscip-go gomod github.com/golang/go/src go1.20 testing/.Tscip-go gomod github.com/golang/go/src go1.20 testing/T#) { |
| 18 | value := V4Bytesscip-go gomod github.com/savsgio/gotils . `github.com/savsgio/gotils/uuid`/V4Bytes().() |
| 19 | |
| 20 | if _, err := uuidscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/.ParseBytesscip-go gomod github.com/google/uuid v1.6.0 `github.com/google/uuid`/ParseBytes().(value); err != nil { |
| 21 | t.Errorfscip-go gomod github.com/golang/go/src go1.20 testing/common#Errorf().("V4() == %s, invalid value", value) |
| 22 | } |
| 23 | } |