forked from mirror/pkger
dollar and a dream
This commit is contained in:
parent
2261590e37
commit
ee082ed548
|
@ -23,7 +23,7 @@ func (s Suite) Test_File_Info(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
r := require.New(st)
|
||||
|
||||
r.NoError(s.RemoveAll(mould))
|
||||
|
|
|
@ -93,8 +93,6 @@ func (s Suite) Test_HTTP_Dir_IndexHTML(t *testing.T) {
|
|||
r.NoError(err)
|
||||
ip := cur.ImportPath
|
||||
|
||||
r.NoError(s.LoadFolder())
|
||||
|
||||
table := []struct {
|
||||
in string
|
||||
req string
|
||||
|
@ -106,9 +104,11 @@ func (s Suite) Test_HTTP_Dir_IndexHTML(t *testing.T) {
|
|||
|
||||
exp := "index.html"
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in+exp, func(st *testing.T) {
|
||||
s.Run(t, tt.in+exp, func(st *testing.T) {
|
||||
r := require.New(st)
|
||||
|
||||
r.NoError(s.LoadFolder())
|
||||
|
||||
dir, err := s.Open(tt.in)
|
||||
r.NoError(err)
|
||||
|
||||
|
|
|
@ -297,7 +297,7 @@ func (s Suite) Test_Parse(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
r := require.New(st)
|
||||
|
||||
pt, err := s.Parse(tt.in)
|
||||
|
@ -326,7 +326,7 @@ func (s Suite) Test_Stat_Error(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
|
||||
r := require.New(st)
|
||||
|
||||
|
@ -360,7 +360,7 @@ func (s Suite) Test_Stat_Dir(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
|
||||
r := require.New(st)
|
||||
|
||||
|
@ -394,7 +394,7 @@ func (s Suite) Test_Stat_File(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
|
||||
r := require.New(st)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ func (s Suite) Test_Util_ReadFile(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, tt := range table {
|
||||
t.Run(tt.in, func(st *testing.T) {
|
||||
s.Run(t, tt.in, func(st *testing.T) {
|
||||
|
||||
r := require.New(st)
|
||||
|
||||
|
|
Loading…
Reference in New Issue