Skip to content

Commit

Permalink
MG-2145 - Generate mocks with mockery for Lora service (#2146)
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene authored Apr 19, 2024
1 parent 66c737a commit 539be0f
Show file tree
Hide file tree
Showing 5 changed files with 463 additions and 89 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-generated-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
- "users/hasher.go"
- "mqtt/events/streams.go"
- "readers/messages.go"
- "lora/routemap.go"
- name: Set up protoc
if: steps.changes.outputs.proto == 'true'
Expand Down Expand Up @@ -136,6 +137,7 @@ jobs:
mv ./users/mocks/hasher.go ./users/mocks/hasher.go.tmp
mv ./mqtt/mocks/events.go ./mqtt/mocks/events.go.tmp
mv ./readers/mocks/messages.go ./readers/mocks/messages.go.tmp
mv ./lora/mocks/routes.go ./lora/mocks/routes.go.tmp
make mocks
Expand Down Expand Up @@ -176,3 +178,4 @@ jobs:
check_mock_changes ./users/mocks/hasher.go "Users Hasher ./users/mocks/hasher.go"
check_mock_changes ./mqtt/mocks/events.go "MQTT Events Store ./mqtt/mocks/events.go"
check_mock_changes ./readers/mocks/messages.go "Message Readers ./readers/mocks/messages.go"
check_mock_changes ./lora/mocks/routes.go "LoRa Repository ./lora/mocks/routes.go"
Loading

0 comments on commit 539be0f

Please sign in to comment.