Skip to content

Commit

Permalink
add the mock generate to make file
Browse files Browse the repository at this point in the history
  • Loading branch information
aabughosh committed Jul 31, 2024
1 parent 2580a11 commit 537459b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ EXECUTABLE := commatrix-gen

build:
go build -o $(EXECUTABLE) $(GO_SRC)
mockgen -source=debug/debug.go -destination=debug/debug_mock.go -package=debug


mock-generate:
go generate ./...

oc:
ifeq (, $(shell which oc))
@{ \
Expand Down
4 changes: 4 additions & 0 deletions debug/debug.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// debug/debug.go

Check failure on line 1 in debug/debug.go

View workflow job for this annotation

GitHub Actions / unit-test

Sentence should start with a capital letter (godot)

package debug

//go:generate mockgen -destination=debug_mock.go -package=debug . DebugPodInterface

import (
"context"
"errors"
Expand Down
12 changes: 6 additions & 6 deletions debug/debug_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 537459b

Please sign in to comment.