Skip to content

Commit f4e6384

Browse files
committed
get rid of mocking
# Conflicts: # go.mod
1 parent 51c9282 commit f4e6384

File tree

5 files changed

+1
-132
lines changed

5 files changed

+1
-132
lines changed

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ At the moment, these storage backends are supported:
1919
- [AWS](./cmd/aws/): [deployment instructions](./deployment/live/aws/test/)
2020
- more to come soon!
2121

22-
## Working on the Code
23-
The following files are auto-generated:
24-
- [`mock_ct_storage.go`](./mockstorage/mock_ct_storage.go): a mock CT storage implementation for tests
25-
26-
To re-generate these files, first install the right tools:
27-
- [mockgen](https://github.com/golang/mock?tab=readme-ov-file#installation)
28-
29-
Then, generate the files:
30-
31-
```bash
32-
cd $(go list -f '{{ .Dir }}' github.com/transparency-dev/static-ct); \
33-
go generate -x ./... # hunts for //go:generate comments and runs them
34-
```
35-
3622
### Contact
3723

3824
- Slack: https://transparency-dev.slack.com/ ([invitation](https://join.slack.com/t/transparency-dev/shared_invite/zt-27pkqo21d-okUFhur7YZ0rFoJVIOPznQ))

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ require (
1313
github.com/aws/smithy-go v1.22.3
1414
github.com/gdamore/tcell/v2 v2.8.1
1515
github.com/go-sql-driver/mysql v1.9.1
16-
github.com/golang/mock v1.7.0-rc.1
1716
github.com/google/go-cmp v0.7.0
1817
github.com/kylelemons/godebug v1.1.0
1918
github.com/prometheus/client_golang v1.21.1
@@ -27,7 +26,6 @@ require (
2726
golang.org/x/net v0.38.0
2827
google.golang.org/api v0.228.0
2928
google.golang.org/grpc v1.71.0
30-
google.golang.org/protobuf v1.36.6
3129
k8s.io/klog/v2 v2.130.1
3230
)
3331

@@ -105,4 +103,5 @@ require (
105103
google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb // indirect
106104
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
107105
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
106+
google.golang.org/protobuf v1.36.5 // indirect
108107
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,6 @@ golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
14481448
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
14491449
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
14501450
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
1451-
golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
14521451
golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
14531452
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
14541453
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=

mockstorage/gen.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

mockstorage/mock_ct_storage.go

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)