Skip to content

Commit 5036238

Browse files
committed
Make the tests pass
1 parent e1ff424 commit 5036238

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/cmd/vet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewCmdVet() *cobra.Command {
2929
defer trace.StartRegion(cmd.Context(), "vet").End()
3030
stderr := cmd.ErrOrStderr()
3131
dir, name := getConfigPath(stderr, cmd.Flag("file"))
32-
if err := examine(cmd.Context(), ParseEnv(cmd), dir, name, stderr); err != nil {
32+
if err := Vet(cmd.Context(), ParseEnv(cmd), dir, name, stderr); err != nil {
3333
if !errors.Is(err, ErrFailedChecks) {
3434
fmt.Fprintf(stderr, "%s\n", err)
3535
}
@@ -40,7 +40,7 @@ func NewCmdVet() *cobra.Command {
4040
}
4141
}
4242

43-
func examine(ctx context.Context, e Env, dir, filename string, stderr io.Writer) error {
43+
func Vet(ctx context.Context, e Env, dir, filename string, stderr io.Writer) error {
4444
configPath, conf, err := readConfig(stderr, dir, filename)
4545
if err != nil {
4646
return err

internal/endtoend/endtoend_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ func TestReplay(t *testing.T) {
123123
if err == nil {
124124
cmpDirectory(t, path, output)
125125
}
126+
case "vet":
127+
err = cmd.Vet(ctx, env, path, "", &stderr)
126128
default:
127129
t.Fatalf("unknown command")
128130
}

0 commit comments

Comments
 (0)