summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnderByEndera <[email protected]>2020-12-31 14:51:11 +0800
committerEnderByEndera <[email protected]>2020-12-31 14:51:11 +0800
commit1de0d07766adac2cd0b12f68287672ec157911fb (patch)
tree7b9e1e605ad41abae1f540b5148bf4cbf90c6982
parente1bca343806707ba8f7180bb1e8e7095f8b4c4f1 (diff)
changed marshal_and_unmarshal_test.go
-rw-r--r--rules/marshal_and_unmarshal_test.go6
-rw-r--r--static/rules/pathrules.json5
2 files changed, 4 insertions, 7 deletions
diff --git a/rules/marshal_and_unmarshal_test.go b/rules/marshal_and_unmarshal_test.go
index 4be1163..cb4408f 100644
--- a/rules/marshal_and_unmarshal_test.go
+++ b/rules/marshal_and_unmarshal_test.go
@@ -1,7 +1,7 @@
/*
* @Author: EnderByEndera
* @Date: 2020-12-16 14:31:00
- * @LastEditTime: 2020-12-31 13:59:05
+ * @LastEditTime: 2020-12-31 14:50:23
* @LastEditors: Please set LastEditors
* @Description: Test marshalling.go
* @FilePath: /commdetection/rules/marshalling_test.go
@@ -59,7 +59,7 @@ func TestUnmarshalSensitiveCommSetting(t *testing.T) {
func TestMarshalSensitivePathSetting(t *testing.T) {
spaths := SPaths{
{
- Path: "/root",
+ Path: "/root/go/src/commdetection",
Coefficient: 0.7,
},
}
@@ -80,7 +80,7 @@ func TestUnmarshalSensitivePathSetting(t *testing.T) {
}
predict := SPaths{
{
- Path: "/root",
+ Path: "/root/go/src/commdetection",
Coefficient: 0.7,
},
}
diff --git a/static/rules/pathrules.json b/static/rules/pathrules.json
index c48b038..ca1c2c3 100644
--- a/static/rules/pathrules.json
+++ b/static/rules/pathrules.json
@@ -1,4 +1 @@
-[{
- "Path": "/root/go/src/commdetection",
- "Coefficient": 0.7
-}] \ No newline at end of file
+[{"Path":"/root","Coefficient":0.7}] \ No newline at end of file