From 5d326bd17778d614a42e0b4fc9d98429239e44cf Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 19 Apr 2017 11:24:09 +0200 Subject: [PATCH] core: increase test coverage for utils Signed-off-by: deadprogram --- utils_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils_test.go b/utils_test.go index 814c8fa9..89812000 100644 --- a/utils_test.go +++ b/utils_test.go @@ -1,6 +1,7 @@ package gobot import ( + "strings" "testing" "time" @@ -79,3 +80,8 @@ func TestRand(t *testing.T) { t.Errorf("%v should not equal %v", a, b) } } + +func TestDefaultName(t *testing.T) { + name := DefaultName("tester") + gobottest.Assert(t, strings.Contains(name, "tester"), true) +}