dollar and a dream

This commit is contained in:
Mark Bates 2019-09-03 16:45:32 -04:00
parent 2261590e37
commit ee082ed548
4 changed files with 9 additions and 9 deletions

View File

@ -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))

View File

@ -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)

View File

@ -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)

View File

@ -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)