Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
dollar and a dream
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Sep 3, 2019
1 parent 2261590 commit ee082ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkging/pkgtest/file.go
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions pkging/pkgtest/http.go
Expand Up @@ -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
Expand All @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions pkging/pkgtest/suite.go
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgtest/util.go
Expand Up @@ -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)

Expand Down

0 comments on commit ee082ed

Please sign in to comment.