Unit testing for def/ module.
Added unit tests to test code in def/ module.
This commit is contained in:
parent
e24b8a08c9
commit
bac60e872a
396 changed files with 83991 additions and 13209 deletions
3
vendor/github.com/pborman/uuid/go.mod
generated
vendored
Normal file
3
vendor/github.com/pborman/uuid/go.mod
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module github.com/pborman/uuid
|
||||
|
||||
require github.com/google/uuid v1.0.0
|
2
vendor/github.com/pborman/uuid/go.sum
generated
vendored
Normal file
2
vendor/github.com/pborman/uuid/go.sum
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
github.com/google/uuid v1.0.0 h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA=
|
||||
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
5
vendor/github.com/pborman/uuid/uuid.go
generated
vendored
5
vendor/github.com/pborman/uuid/uuid.go
generated
vendored
|
@ -54,9 +54,8 @@ func New() string {
|
|||
return NewRandom().String()
|
||||
}
|
||||
|
||||
// Parse decodes s into a UUID or returns nil. Both the UUID form of
|
||||
// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and
|
||||
// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded.
|
||||
// Parse decodes s into a UUID or returns nil. See github.com/google/uuid for
|
||||
// the formats parsed.
|
||||
func Parse(s string) UUID {
|
||||
gu, err := guuid.Parse(s)
|
||||
if err == nil {
|
||||
|
|
Reference in a new issue