2023-02-16 08:55:51 +00:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-03-19 00:55:51 +00:00
|
|
|
|
|
|
|
"go.uber.org/goleak"
|
2023-02-16 08:55:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestSearch(t *testing.T) {
|
2023-03-19 00:55:51 +00:00
|
|
|
goleak.VerifyNone(t)
|
2023-02-16 08:55:51 +00:00
|
|
|
|
2023-03-19 00:55:51 +00:00
|
|
|
if d, e := NewOtherService().Search("test"); e != nil || d == nil {
|
2023-02-16 08:55:51 +00:00
|
|
|
t.Error("then test search error", e)
|
|
|
|
}
|
|
|
|
}
|