Skip to content

Commit 145794a

Browse files
committed
refactor: refactored rpc services to allow for easier mocking
1 parent 9a699ba commit 145794a

38 files changed

+3900
-492
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ fabric.properties
6464
# Android studio 3.1+ serialized cache file
6565
.idea/caches/build_file_checksums.ser
6666

67+
# Cody code completion
68+
.idea/cody_history.xml
69+
6770
.DS_Store

.idea/golinter.xml

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mockery.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
with-expecter: True
2+
inpackage: True
3+
dir: internal/mocks/{{ replaceAll .InterfaceDirRelative "internal" "internal_" }}
4+
mockname: "{{.InterfaceName}}"
5+
outpkg: "{{.PackageName}}"
6+
filename: "{{.InterfaceName}}.go"
7+
all: True
8+
packages:
9+
github.com/madsrc/sophrosyne:
10+
config:
11+
recursive: True

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ require (
8686
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
8787
github.com/shoenig/go-m1cpu v0.1.6 // indirect
8888
github.com/sirupsen/logrus v1.9.3 // indirect
89+
github.com/stretchr/objx v0.5.2 // indirect
8990
github.com/tklauser/go-sysconf v0.3.12 // indirect
9091
github.com/tklauser/numcpus v0.6.1 // indirect
9192
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
154154
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
155155
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
156156
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
157+
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
158+
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
157159
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
158160
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
159161
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=

internal/mocks/AuthorizationEntity.go

+122
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/mocks/AuthorizationProvider.go

+83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)