Chore: make test linter happy

This commit is contained in:
Dreamacro 2023-03-14 21:24:15 +08:00
parent e5a2dbd9b5
commit ff2f2b667b
7 changed files with 19 additions and 19 deletions

View File

@ -10,7 +10,7 @@ linters-settings:
gci:
sections:
- standard
- prefix(github.com/Dreamacro/clash)
- default
- prefix(github.com/Dreamacro/clash)
staticcheck:
go: '1.20'

View File

@ -1,6 +1,6 @@
lint:
GOOS=darwin golangci-lint run ./...
GOOS=linux golangci-lint run ./...
GOOS=darwin golangci-lint run --fix ./...
GOOS=linux golangci-lint run --fix ./...
test:
go test -p 1 -v ./...

View File

@ -15,16 +15,16 @@ import (
"testing"
"time"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/hub/executor"
"github.com/Dreamacro/clash/transport/socks5"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/docker/go-connections/nat"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/hub/executor"
"github.com/Dreamacro/clash/transport/socks5"
)
const (

View File

@ -5,11 +5,11 @@ import (
"testing"
"time"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/require"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
)
func TestClash_SnellObfsHTTP(t *testing.T) {

View File

@ -5,10 +5,10 @@ import (
"testing"
"time"
"github.com/Dreamacro/clash/adapter/outbound"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/require"
"github.com/Dreamacro/clash/adapter/outbound"
)
func TestClash_Shadowsocks(t *testing.T) {

View File

@ -6,11 +6,11 @@ import (
"testing"
"time"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/require"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
)
func TestClash_Trojan(t *testing.T) {

View File

@ -5,11 +5,11 @@ import (
"testing"
"time"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/require"
"github.com/Dreamacro/clash/adapter/outbound"
C "github.com/Dreamacro/clash/constant"
)
func TestClash_Vmess(t *testing.T) {