Skip to content

Commit 08082ba

Browse files
committed
chore(mocks): removed all importable mocks and generate commands
1 parent e78d984 commit 08082ba

File tree

19 files changed

+0
-1224
lines changed

19 files changed

+0
-1224
lines changed

clientip/clientip.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"strings"
77
)
88

9-
//go:generate mockgen -destination=mock_$GOPACKAGE/$GOFILE . HTTPRequestParser
10-
119
type HTTPRequestParser interface {
1210
ParseHTTPRequest(r *http.Request) net.IP
1311
}

clientip/mock_clientip/clientip.go

Lines changed: 0 additions & 50 deletions
This file was deleted.

command/cmder.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package command
22

33
var _ RunStarter = (*Cmder)(nil)
44

5-
//go:generate mockgen -destination=mock_$GOPACKAGE/$GOFILE . RunStarter
6-
75
type RunStarter interface {
86
Runner
97
Starter

command/execcmd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package command
22

33
import "io"
44

5-
//go:generate mockgen -destination=execcmd_mock_test.go -package=command . ExecCmd
6-
75
// ExecCmd is the interface for exec.Cmd.
86
type ExecCmd interface {
97
CombinedOutput() ([]byte, error)

command/mock_command/cmder.go

Lines changed: 0 additions & 67 deletions
This file was deleted.

command/mock_command/run.go

Lines changed: 0 additions & 50 deletions
This file was deleted.

command/mock_command/start.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

command/run.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"strings"
55
)
66

7-
//go:generate mockgen -destination=mock_$GOPACKAGE/$GOFILE . Runner
8-
97
type Runner interface {
108
Run(cmd ExecCmd) (output string, err error)
119
}

command/start.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
"sync"
99
)
1010

11-
//go:generate mockgen -destination=mock_$GOPACKAGE/$GOFILE . Starter
12-
1311
type Starter interface {
1412
Start(cmd ExecCmd) (stdoutLines, stderrLines chan string,
1513
waitError chan error, err error)

connectivity/checker.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"context"
55
)
66

7-
//go:generate mockgen -destination=mock_$GOPACKAGE/$GOFILE . Checker,SingleChecker
8-
97
type Checker interface {
108
ParallelChecks(ctx context.Context, urls []string) []error
119
SingleChecker

0 commit comments

Comments
 (0)