getscoring interface function mock
authorjaehoon.hyun <jaehoon.hyun@samsung.com>
Tue, 2 Apr 2019 06:28:46 +0000 (15:28 +0900)
committerjaehoon.hyun <jaehoon.hyun@samsung.com>
Tue, 2 Apr 2019 06:28:46 +0000 (15:28 +0900)
src/scoringmgr/mock/mock_getscoring.go [new file with mode: 0644]

diff --git a/src/scoringmgr/mock/mock_getscoring.go b/src/scoringmgr/mock/mock_getscoring.go
new file mode 100644 (file)
index 0000000..287b5ea
--- /dev/null
@@ -0,0 +1,16 @@
+package mockscoringmgr
+
+import (
+  "math/rand"
+  "time"
+  "log"
+)
+
+func GetScoreRandom100Mock(endpoint string, libName string) float64{
+
+  log.Printf("libName : %s ", libName)
+  seed := rand.NewSource(time.Now().UnixNano())
+  random := rand.New(seed)
+
+  return random.Float64() * 100
+}