You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
350 B
15 lines
350 B
package directory
|
|
|
|
import (
|
|
"testing"
|
|
"log"
|
|
)
|
|
|
|
func TestSerialDeserialization(t *testing.T) {
|
|
f1 := &FileId{VolumeId: 345, Key:8698, Hashcode: 23849095}
|
|
log.Println("vid", f1.VolumeId, "key", f1.Key, "hash", f1.Hashcode)
|
|
|
|
f2 := ParseFileId(t.String())
|
|
|
|
log.Println("vvid", f2.VolumeId, "vkey", f2.Key, "vhash", f2.Hashcode)
|
|
}
|