MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / TestIsUUID

Function TestIsUUID

pkg/validation/validation_test.go:28–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestIsUUID(t *testing.T) {
29 testStrings := []string{"foo", "bar", "quxx"}
30 for _, v := range testStrings {
31 err := IsUuid(v)
32 assert.Error(t, err)
33 }
34
35 testUUID, err := uuid.NewUUID()
36 assert.NoError(t, err)
37 assert.NotNil(t, testUUID)
38
39 testUUIDString := testUUID.String()
40 err = IsUuid(testUUIDString)
41 assert.NoError(t, err)
42}

Callers

nothing calls this directly

Calls 2

IsUuidFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected