aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/mysql_store/mysql_store_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-27 11:52:15 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-27 11:52:15 -0700
commit8647191bee2027232105b20b5c110ffda225f9ba (patch)
treea3545bfd3c6c27f5511066db228ef48d5d935c51 /weed/filer/mysql_store/mysql_store_test.go
parent03d76479a57a4e28a56d89b14d78300756992007 (diff)
downloadseaweedfs-8647191bee2027232105b20b5c110ffda225f9ba.tar.xz
seaweedfs-8647191bee2027232105b20b5c110ffda225f9ba.zip
removing filer package!
Diffstat (limited to 'weed/filer/mysql_store/mysql_store_test.go')
-rw-r--r--weed/filer/mysql_store/mysql_store_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/weed/filer/mysql_store/mysql_store_test.go b/weed/filer/mysql_store/mysql_store_test.go
deleted file mode 100644
index 1c9765c59..000000000
--- a/weed/filer/mysql_store/mysql_store_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package mysql_store
-
-import (
- "encoding/json"
- "hash/crc32"
- "testing"
-)
-
-func TestGenerateMysqlConf(t *testing.T) {
- var conf []MySqlConf
- conf = append(conf, MySqlConf{
- User: "root",
- Password: "root",
- HostName: "localhost",
- Port: 3306,
- DataBase: "seaweedfs",
- })
- body, err := json.Marshal(conf)
- if err != nil {
- t.Errorf("json encoding err %s", err.Error())
- }
- t.Logf("json output is %s", string(body))
-}
-
-func TestCRC32FullPathName(t *testing.T) {
- fullPathName := "/prod-bucket/law632191483895612493300-signed.pdf"
- hash_value := crc32.ChecksumIEEE([]byte(fullPathName))
- table_postfix := int(hash_value) % 1024
- t.Logf("table postfix %d", table_postfix)
-}