https://github.com/dal-go/mocks4dalgo
Mocks for Dalgo - makes testing your code that uses Dalgo easier
https://github.com/dal-go/mocks4dalgo
dalgo mock mocking mocking-utility
Last synced: 14 days ago
JSON representation
Mocks for Dalgo - makes testing your code that uses Dalgo easier
- Host: GitHub
- URL: https://github.com/dal-go/mocks4dalgo
- Owner: dal-go
- License: mit
- Created: 2023-04-04T09:22:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-07T09:13:54.000Z (21 days ago)
- Last Synced: 2025-06-07T10:20:59.180Z (21 days ago)
- Topics: dalgo, mock, mocking, mocking-utility
- Language: Go
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mocks4dalgo
A tests helper package that provides mocks for:
* [dalgo/dal](https://github.com/dal-go/dalgo/tree/main/dal) - `mocks4dal`
You should have [`gomock`](https://go.uber.org/mock) installed to regenerate mocks.
## [mocks4dal](mock_dal)
To regenerate [`mocks.go`](mock_dal/mocks.go) file, run the following command:
$ mockgen -package mocks4dal github.com/dal-go/dalgo/dal Database,TransactionCoordinator,ReadTransactionCoordinator,ReadwriteTransactionCoordinator,Transaction,ReadTransaction,ReadwriteTransaction,ReadSession,WriteSession,ReadwriteSession > mocks4dal/mocks.go