Skip to content

Commit 4942f3b

Browse files
committed
fix(mocks): missing mocks
1 parent f3fb2f6 commit 4942f3b

20 files changed

+3661
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*.test
1616
*.out
1717
go.work
18-
mocks/
1918
coverage.html
2019

2120
# MacOS

.mockery.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ packages:
3232
DecryptionMaterial:
3333
EncryptionMaterial:
3434
Wrapper:
35+
github.com/chainifynet/aws-encryption-sdk-go/pkg/model/format:
36+
config:
37+
tags: "mocks"
38+
interfaces:
39+
MessageAAD:
3540
github.com/chainifynet/aws-encryption-sdk-go/pkg/utils/encryption:
3641
interfaces:
3742
GcmBase:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ examples: lint-examples run-examples
5555
lint-examples:
5656
@for dir in $(shell find ./example -type d -mindepth 1 -maxdepth 1); do \
5757
echo "Running golangci-lint in: $$dir"; \
58-
(cd $$dir && go get && golangci-lint run ./...) || exit $$?; \
58+
(cd $$dir && go get && go mod tidy && golangci-lint run ./...) || exit $$?; \
5959
done
6060

6161
run-examples:
6262
@for dir in $(shell find ./example -type d -mindepth 1 -maxdepth 1); do \
6363
echo "Running example: $$dir"; \
64-
(cd $$dir && go get && go run ./...) || exit $$?; \
64+
(cd $$dir && go get && go mod tidy && go run ./...) || exit $$?; \
6565
echo "Done"; \
6666
echo "================"; \
6767
done

mocks/github.com/chainifynet/aws-encryption-sdk-go/pkg/model/CryptoMaterialsManager_mock.go

Lines changed: 204 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)