17 lines
314 B
Go
17 lines
314 B
Go
package service
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
|
|
"go.uber.org/goleak"
|
|
)
|
|
|
|
func TestSearch(t *testing.T) {
|
|
logger.LogInitConsoleOnly()
|
|
goleak.VerifyNone(t)
|
|
|
|
if d, e := NewOtherService().Search("test"); e != nil || d == nil {
|
|
t.Error("then test search error", e)
|
|
}
|
|
}
|