File: uuid_test.go

package info (click to toggle)
golang-github-jhillyerd-enmime 0.9.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,156 kB
  • sloc: makefile: 25; sh: 16
file content (18 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package stringutil_test

import (
	"testing"

	"github.com/jhillyerd/enmime/internal/stringutil"
)

func TestUUID(t *testing.T) {
	id1 := stringutil.UUID()
	id2 := stringutil.UUID()

	if id1 == id2 {
		t.Errorf("Random UUID should not equal another random UUID")
		t.Logf("id1: %q", id1)
		t.Logf("id2: %q", id2)
	}
}