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) }