chore(dependency): remove alecthomas/assert module

This commit is contained in:
Jay McCure 2023-10-05 13:20:13 +00:00 committed by Oscar Tovar
parent e86d6959e7
commit 79a9211729
30 changed files with 28 additions and 40 deletions

View File

@ -9,7 +9,7 @@ import (
"path/filepath"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/cli/pkg/iostreams"

View File

@ -10,7 +10,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"

View File

@ -12,7 +12,7 @@ import (
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -9,7 +9,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"

View File

@ -8,7 +8,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"

View File

@ -8,8 +8,8 @@ import (
"gitlab.com/gitlab-org/cli/pkg/iostreams"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/pkg/prompt"
"github.com/spf13/cobra"

View File

@ -3,8 +3,8 @@ package flag
import (
"testing"
"github.com/alecthomas/assert"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
"gitlab.com/gitlab-org/cli/internal/config"

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -5,7 +5,7 @@ import (
"net/http"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/commands/issuable"
"gitlab.com/gitlab-org/cli/pkg/git"

View File

@ -8,7 +8,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"

View File

@ -7,7 +7,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
"gitlab.com/gitlab-org/cli/test"

View File

@ -12,7 +12,7 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -4,7 +4,7 @@ import (
"net/http"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdtest"
"gitlab.com/gitlab-org/cli/pkg/git"
"gitlab.com/gitlab-org/cli/pkg/httpmock"

View File

@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/release/releaseutils/upload"

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
)

View File

@ -10,8 +10,8 @@ import (
"gitlab.com/gitlab-org/cli/internal/glrepo"
"gitlab.com/gitlab-org/cli/pkg/iostreams"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
"gitlab.com/gitlab-org/cli/pkg/httpmock"
)

View File

@ -5,8 +5,8 @@ import (
"net/http"
"testing"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -5,8 +5,8 @@ import (
"net/http"
"testing"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -7,8 +7,8 @@ import (
"gitlab.com/gitlab-org/cli/pkg/iostreams"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -7,8 +7,8 @@ import (
"gitlab.com/gitlab-org/cli/pkg/iostreams"
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
"gitlab.com/gitlab-org/cli/api"
"gitlab.com/gitlab-org/cli/commands/cmdutils"

View File

@ -3,7 +3,7 @@ package variableutils
import (
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"gitlab.com/gitlab-org/cli/pkg/iostreams"
)

4
go.mod
View File

@ -6,7 +6,6 @@ require (
github.com/AlecAivazis/survey/v2 v2.3.6
github.com/MakeNowJust/heredoc v1.0.0
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38
github.com/avast/retry-go v3.0.0+incompatible
github.com/briandowns/spinner v1.23.0
github.com/charmbracelet/glamour v0.6.0
@ -45,8 +44,6 @@ require (
require (
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 // indirect
github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897 // indirect
github.com/alessio/shellescape v1.4.1 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
@ -75,7 +72,6 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect

8
go.sum
View File

@ -46,14 +46,8 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63n
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 h1:smF2tmSOzy2Mm+0dGI2AIUHY+w0BUc+4tn40djz7+6U=
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod h1:r7bzyVFMNntcxPZXK3/+KdruV1H5KSlyVY0gc+NgInI=
github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek=
github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s=
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 h1:JHZL0hZKJ1VENNfmXvHbgYlbUOvpzYzvy2aZU5gXVeo=
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721/go.mod h1:QO9JBoKquHd+jz9nshCh40fOfO+JzsoXy8qTHF68zU0=
github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897 h1:p9Sln00KOTlrYkxI1zYWl1QLnEqAqEARBEYa8FQnQcY=
github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ=
github.com/alessio/shellescape v1.4.1 h1:V7yhSDDn8LP4lc4jS8pFkt0zCnzVJlG5JXy9BVKJUX0=
github.com/alessio/shellescape v1.4.1/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHSxpiH9JdtuBj0=
@ -270,8 +264,6 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM=
github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ=
github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA=

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
)
func Test_CheckPathExists(t *testing.T) {

View File

@ -3,7 +3,7 @@ package glinstance
import (
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
)
func TestIsSelfHosted(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
)
func Test_HelperFunctions(t *testing.T) {

View File

@ -3,7 +3,7 @@ package utils
import (
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
)
func Test_Indent(t *testing.T) {

View File

@ -3,7 +3,7 @@ package utils
import (
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/assert"
)
func Test_HelperFuncs(t *testing.T) {