Skip to content

Commit

Permalink
chore(test): switch to minimock for unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joremysh committed Sep 13, 2024
1 parent 6f2f9e7 commit f79d70e
Show file tree
Hide file tree
Showing 7 changed files with 14,161 additions and 737 deletions.
5 changes: 2 additions & 3 deletions pkg/mock/generator.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package mock

//go:generate minimock -g -i github.com/instill-ai/model-backend/pkg/minio.MinioI -o ./ -s "_mock.gen.go"

// todo: port the `mockgen` generated files to `minimock`
//go:generate mockgen -destination mock_repository.go -package $GOPACKAGE github.com/instill-ai/model-backend/pkg/repository Repository
//go:generate minimock -g -i github.com/instill-ai/model-backend/pkg/repository.Repository -o ./ -s "_mock.gen.go"
//go:generate minimock -g -i github.com/instill-ai/model-backend/pkg/ray.Ray -o ./ -s "_mock.gen.go"
515 changes: 0 additions & 515 deletions pkg/mock/mock_repository.go

This file was deleted.

Loading

0 comments on commit f79d70e

Please sign in to comment.