test coverage
This commit is contained in:
parent
7b40eab657
commit
8265fb302e
|
@ -14,11 +14,16 @@
|
|||
|
||||
package util
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"strconv"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetFileSize(t *testing.T) {
|
||||
size := File.GetFileSize(".")
|
||||
|
||||
t.Log("size: " + strconv.FormatInt(size, 10))
|
||||
|
||||
if 4096 != size {
|
||||
t.Error("Size of a directory should be 4096")
|
||||
|
||||
|
|
Loading…
Reference in New Issue