35 lines
327 B
Go
35 lines
327 B
Go
package utils
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestStringUpper(t *testing.T) {
|
|
|
|
res := "crawlerInputItem"
|
|
|
|
aa := strings.Title(res)
|
|
|
|
t.Log(aa)
|
|
|
|
}
|
|
|
|
func TestGM(t *testing.T) {
|
|
|
|
t.Log(GenerateModelStr("target"))
|
|
|
|
}
|
|
|
|
func TestNil(t *testing.T) {
|
|
|
|
var oo interface{}
|
|
|
|
oo = nil
|
|
|
|
if oo == nil {
|
|
t.Log("nil!!!")
|
|
}
|
|
|
|
}
|