From c1ad999c25dd722fa06db5ca50527f91d5c13ca9 Mon Sep 17 00:00:00 2001 From: jroam Date: Wed, 10 Apr 2019 13:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/os/gfile/gfile_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/g/os/gfile/gfile_test.go b/g/os/gfile/gfile_test.go index 1a69a4dd4..f2f8fefb9 100644 --- a/g/os/gfile/gfile_test.go +++ b/g/os/gfile/gfile_test.go @@ -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) + + }) +} +