core: increase test coverage for utils
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
eb4ce6bda5
commit
5d326bd177
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue