ya betta pawn it

This commit is contained in:
Mark Bates 2019-10-18 12:27:58 -04:00
parent 0e07c89834
commit 38ea627cde
3 changed files with 8 additions and 9 deletions

View File

@ -114,10 +114,8 @@ var pubWalk = []string{
"app:/",
"app:/public",
"app:/public/images",
"app:/public/images/mark-small.png",
"app:/public/images/mark.png",
"app:/public/images/mark_250px.png",
"app:/public/images/mark_400px.png",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
}
@ -127,10 +125,8 @@ var rootWalk = []string{
"app:/main.go",
"app:/public",
"app:/public/images",
"app:/public/images/mark-small.png",
"app:/public/images/mark.png",
"app:/public/images/mark_250px.png",
"app:/public/images/mark_400px.png",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
"app:/templates",
"app:/templates/a.txt",

View File

@ -92,13 +92,14 @@ func (s Suite) Test_File_Readdir(t *testing.T) {
infos, err = dir.Readdir(-1)
r.NoError(err)
r.Len(infos, 1)
r.Len(infos, 2)
sort.Slice(infos, func(i, j int) bool {
return infos[i].Name() < infos[j].Name()
})
r.Equal("img1.png", infos[0].Name())
r.Equal("img2.png", infos[1].Name())
})
}

View File

@ -474,10 +474,12 @@ func (s Suite) Test_Walk(t *testing.T) {
exp := []string{
"app:/",
"app:/go.mod",
"app:/main.go",
"app:/public",
"app:/public/images",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
"app:/templates",
"app:/templates/a.txt",