summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/corpix/uarand/uarand_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/corpix/uarand/uarand_test.go')
-rw-r--r--vendor/github.com/corpix/uarand/uarand_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/corpix/uarand/uarand_test.go b/vendor/github.com/corpix/uarand/uarand_test.go
new file mode 100644
index 000000000..0659ff200
--- /dev/null
+++ b/vendor/github.com/corpix/uarand/uarand_test.go
@@ -0,0 +1,13 @@
+package uarand
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestGetRandom(t *testing.T) {
+ for k := 0; k < len(UserAgents)*10; k++ {
+ assert.NotEqual(t, "", GetRandom())
+ }
+}