MCPcopy
hub / github.com/google/uuid / testDCE

Function testDCE

uuid_test.go:454–469  ·  view source on GitHub ↗
(t *testing.T, name string, uuid UUID, err error, domain Domain, id uint32)

Source from the content-addressed store, hash-verified

452}
453
454func testDCE(t *testing.T, name string, uuid UUID, err error, domain Domain, id uint32) {
455 if err != nil {
456 t.Errorf("%s failed: %v", name, err)
457 return
458 }
459 if v := uuid.Version(); v != 2 {
460 t.Errorf("%s: %s: expected version 2, got %s", name, uuid, v)
461 return
462 }
463 if v := uuid.Domain(); v != domain {
464 t.Errorf("%s: %s: expected domain %d, got %d", name, uuid, domain, v)
465 }
466 if v := uuid.ID(); v != id {
467 t.Errorf("%s: %s: expected id %d, got %d", name, uuid, id, v)
468 }
469}
470
471func TestDCE(t *testing.T) {
472 uuid, err := NewDCESecurity(42, 12345678)

Callers 1

TestDCEFunction · 0.85

Calls 3

VersionMethod · 0.80
DomainMethod · 0.80
IDMethod · 0.80

Tested by

no test coverage detected