forked from mirror/pkger
hollywood cemetery
This commit is contained in:
parent
ee082ed548
commit
5e7309c6ab
|
@ -56,8 +56,6 @@ func (s Suite) Test_HTTP_Dir(t *testing.T) {
|
|||
r.NoError(err)
|
||||
ip := cur.ImportPath
|
||||
|
||||
r.NoError(s.LoadFolder())
|
||||
|
||||
table := []struct {
|
||||
in string
|
||||
req string
|
||||
|
@ -69,6 +67,10 @@ func (s Suite) Test_HTTP_Dir(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
s.Run(t, tt.in+tt.req, func(st *testing.T) {
|
||||
|
||||
r := require.New(t)
|
||||
r.NoError(s.LoadFolder())
|
||||
|
||||
dir, err := s.Open(tt.in)
|
||||
r.NoError(err)
|
||||
|
@ -83,6 +85,7 @@ func (s Suite) Test_HTTP_Dir(t *testing.T) {
|
|||
r.NoError(err)
|
||||
r.Contains(string(b), tt.exp)
|
||||
r.NotContains(string(b), "mark.png")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue