2dd4adc398326c502f09661dc63bda436c9ee7c8
[platform/core/system/edge-orchestration.git] / src / servicemgr / common_test.go
1 package servicemgr
2
3 import (
4         "strings"
5         "testing"
6 )
7
8 const (
9         serviceName  = "ls"
10         serviceName2 = "main2"
11 )
12
13 func assertEqualStr(t *testing.T, a, b string) {
14         t.Helper()
15         if strings.Compare(a, b) != 0 {
16                 t.Errorf("%s != %s", a, b)
17         }
18 }
19
20 func retError(t *testing.T, err error) {
21         t.Helper()
22
23         if err != nil {
24                 t.Error(err.Error())
25         }
26 }