mirror of
https://gitee.com/johng/gf
synced 2026-07-05 13:22:16 +08:00
添加测试
This commit is contained in:
@ -380,4 +380,16 @@ func TestRemove(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestIsReadable(t *testing.T){
|
||||
gtest.Case(t, func(){
|
||||
var(
|
||||
paths1 string ="./testfile/havefile1/GetContents.txt"
|
||||
paths2 string ="./testfile/havefile1/GetContents_no.txt"
|
||||
)
|
||||
gtest.Assert(IsReadable(paths1),true)
|
||||
gtest.Assert(IsReadable(paths2),false)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user