Skip to content

Commit

Permalink
Merge pull request #39 from mtlynch/no-mockgen
Browse files Browse the repository at this point in the history
Delete mockgen mocks
  • Loading branch information
0x2E authored Dec 27, 2024
2 parents 436f6a8 + fb5eb6c commit 6f3ac27
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 336 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ jobs:
with:
go-version: "1.23"
- name: Test
run: |
go install go.uber.org/mock/mockgen@latest
./scripts.sh test
run: ./scripts.sh test
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ require (
github.com/labstack/echo/v4 v4.12.0
github.com/mmcdole/gofeed v1.3.0
github.com/stretchr/testify v1.9.0
go.uber.org/mock v0.4.0
go.uber.org/zap v1.27.0
gorm.io/gorm v1.25.12
gorm.io/plugin/soft_delete v1.2.1
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
Expand Down
2 changes: 0 additions & 2 deletions server/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
"github.com/0x2e/fusion/service/sniff"
)

//go:generate mockgen -destination=feed_mock.go -source=feed.go -package=server

type FeedRepo interface {
List(filter *repo.FeedListFilter) ([]*model.Feed, error)
Get(id uint) (*model.Feed, error)
Expand Down
113 changes: 0 additions & 113 deletions server/feed_mock.go

This file was deleted.

2 changes: 0 additions & 2 deletions server/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
"github.com/0x2e/fusion/repo"
)

//go:generate mockgen -destination=group_mock.go -source=group.go -package=server

type GroupRepo interface {
All() ([]*model.Group, error)
Create(group *model.Group) error
Expand Down
97 changes: 0 additions & 97 deletions server/group_mock.go

This file was deleted.

2 changes: 0 additions & 2 deletions server/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"github.com/0x2e/fusion/repo"
)

//go:generate mockgen -destination=item_mock.go -source=item.go -package=server

type ItemRepo interface {
List(filter repo.ItemFilter, page, pageSize int) ([]*model.Item, int, error)
Get(id uint) (*model.Item, error)
Expand Down
114 changes: 0 additions & 114 deletions server/item_mock.go

This file was deleted.

0 comments on commit 6f3ac27

Please sign in to comment.