diff --git a/proxy/sensor/sensor_test.go b/proxy/sensor/sensor_test.go index 75facdc..637393f 100644 --- a/proxy/sensor/sensor_test.go +++ b/proxy/sensor/sensor_test.go @@ -1 +1,18 @@ package sensor + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_proxy_service/proxy/target" + "testing" +) + +func TestSensorService_List(t *testing.T) { + + ts := &target.Target{} + ts.Id = json.Number("1") + + ss := NewSensorService() + res, _ := ss.List(ts) + + t.Log(res) +} diff --git a/proxy/sensorItem/sensorItem.go b/proxy/sensorItem/sensorItem.go index 63aebdd..504b591 100644 --- a/proxy/sensorItem/sensorItem.go +++ b/proxy/sensorItem/sensorItem.go @@ -2,10 +2,10 @@ package sensorItem import ( "encoding/json" - "git.loafle.net/overflow/crawler_go" "git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItemCategory" "git.loafle.net/overflow/overflow_proxy_service/proxy/utils" "github.com/golang/protobuf/ptypes/timestamp" + "git.loafle.net/overflow/overflow_proxy_service/proxy/crawler" ) type SensorItem struct { diff --git a/proxy/sensorItem/sensorItem_test.go b/proxy/sensorItem/sensorItem_test.go index 558ff1f..ce46512 100644 --- a/proxy/sensorItem/sensorItem_test.go +++ b/proxy/sensorItem/sensorItem_test.go @@ -1 +1,18 @@ package sensorItem + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_proxy_service/proxy/crawler" + "testing" +) + +func TestSensorItemService_List(t *testing.T) { + + cr := &crawler.Crawler{} + cr.Id = json.Number("1") + sis := NewSensorItemService() + + res, _ := sis.List(cr) + + t.Log(res) +} diff --git a/proxy/sensorItemMapping/sensorItemMapping_test.go b/proxy/sensorItemMapping/sensorItemMapping_test.go index 191a467..9d6488b 100644 --- a/proxy/sensorItemMapping/sensorItemMapping_test.go +++ b/proxy/sensorItemMapping/sensorItemMapping_test.go @@ -1 +1,17 @@ package sensorItemMapping + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_proxy_service/proxy/sensor" + "testing" +) + +func TestSensorItemMappingService_List(t *testing.T) { + s := &sensor.Sensor{} + s.Id = json.Number("1") + + sims := NewSensorItemMappingService() + res, _ := sims.List(s) + + t.Log(res) +}