test coverage

This commit is contained in:
Liang Ding 2014-12-22 11:25:17 +08:00
parent 7b40eab657
commit 8265fb302e
1 changed files with 6 additions and 1 deletions

View File

@ -14,11 +14,16 @@
package util package util
import "testing" import (
"strconv"
"testing"
)
func TestGetFileSize(t *testing.T) { func TestGetFileSize(t *testing.T) {
size := File.GetFileSize(".") size := File.GetFileSize(".")
t.Log("size: " + strconv.FormatInt(size, 10))
if 4096 != size { if 4096 != size {
t.Error("Size of a directory should be 4096") t.Error("Size of a directory should be 4096")