make pathWithinBase public

This commit is contained in:
NickrenREN
2018-08-17 11:23:00 +08:00
parent 159a4358e8
commit 7157d4582b
6 changed files with 16 additions and 16 deletions

View File

@@ -413,7 +413,7 @@ func TestPathWithinBase(t *testing.T) {
},
}
for _, test := range tests {
if pathWithinBase(test.fullPath, test.basePath) != test.expected {
if PathWithinBase(test.fullPath, test.basePath) != test.expected {
t.Errorf("test %q failed: expected %v", test.name, test.expected)
}