crawler_go/crawler_test.go
jackdaw@loafle.com 031ba9e162 .
2017-04-10 20:15:47 +09:00

32 lines
499 B
Go

package crawler
import (
"testing"
)
func TestCrawler(t *testing.T) {
//r := NewRedisHeahthCrawler()
//
//// test config
//
//m := make(map[string]interface{}, 0)
//
//r.configs = make(map[string]interface{}, 0)
//m["ip"] = "192.168.1.104"
//m["port"] = "6379"
//m["portType"] = "tcp"
//m["ssl"] = false
//
//r.configs["redis"] = m
//
//out := param.Output{}
//r.Get("redis", &out)
//
//var check bool
//json.Unmarshal(out.Data, &check)
//
//assert.Equal(t, true, check)
}