-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from eko/replace-mockery-with-gomock
fix(tests): replace mockery by gomock and fix race conditions
- Loading branch information
Showing
34 changed files
with
1,667 additions
and
1,237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
.PHONY: mocks | ||
|
||
mocks: | ||
# mocks | ||
mockery -case=snake -name=CacheInterface -dir=cache/ -output test/mocks/cache/ | ||
mockery -case=snake -name=CodecInterface -dir=codec/ -output test/mocks/codec/ | ||
mockery -case=snake -name=SetterCacheInterface -dir=cache/ -output test/mocks/cache/ | ||
mockery -case=snake -name=MetricsInterface -dir=metrics/ -output test/mocks/metrics/ | ||
mockery -case=snake -name=StoreInterface -dir=store/ -output test/mocks/store/ | ||
mockery -case=snake -name=BigcacheClientInterface -dir=store/ -output test/mocks/store/clients/ | ||
mockery -case=snake -name=MemcacheClientInterface -dir=store/ -output test/mocks/store/clients/ | ||
mockery -case=snake -name=RedisClientInterface -dir=store/ -output test/mocks/store/clients/ | ||
mockery -case=snake -name=RistrettoClientInterface -dir=store/ -output test/mocks/store/clients/ | ||
mockgen -source=cache/interface.go -destination=test/mocks/cache/cache_interface.go -package=mocks | ||
mockgen -source=codec/interface.go -destination=test/mocks/codec/codec_interface.go -package=mocks | ||
mockgen -source=metrics/interface.go -destination=test/mocks/metrics/metrics_interface.go -package=mocks | ||
mockgen -source=store/interface.go -destination=test/mocks/store/store_interface.go -package=mocks | ||
mockgen -source=store/bigcache.go -destination=test/mocks/store/clients/bigcache_interface.go -package=mocks | ||
mockgen -source=store/memcache.go -destination=test/mocks/store/clients/memcache_interface.go -package=mocks | ||
mockgen -source=store/redis.go -destination=test/mocks/store/clients/redis_interface.go -package=mocks | ||
mockgen -source=store/ristretto.go -destination=test/mocks/store/clients/ristretto_interface.go -package=mocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.