Skip to content

Commit 0176f79

Browse files
authored
handlers_test.go: MOCK --> POSIX (#231)
* posix issuer storage * posix backend # Conflicts: # internal/scti/handlers_test.go * test GetRoots # Conflicts: # internal/scti/handlers_test.go # Conflicts: # internal/scti/handlers_test.go * break down setup functions into two # Conflicts: # internal/scti/handlers_test.go # Conflicts: # internal/scti/handlers_test.go # Conflicts: # internal/scti/handlers_test.go * NewPathHandlers test # Conflicts: # internal/scti/handlers_test.go * reintroduce get/post handler tests # Conflicts: # internal/scti/handlers_test.go * addChain, addPreChain, addChainWhitespace tests * add parseChain again to minimize diff * get rid of mocking # Conflicts: # go.mod * clean var definition * remove two TODO, tests are already in chain_validation_test.go * address comments * address more comments
1 parent db3676e commit 0176f79

File tree

9 files changed

+548
-420
lines changed

9 files changed

+548
-420
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module github.com/transparency-dev/static-ct
22

33
go 1.24.0
4+
45
require (
56
cloud.google.com/go/secretmanager v1.14.6
67
cloud.google.com/go/spanner v1.78.0
@@ -13,7 +14,6 @@ require (
1314
github.com/aws/smithy-go v1.22.3
1415
github.com/gdamore/tcell/v2 v2.8.1
1516
github.com/go-sql-driver/mysql v1.9.1
16-
github.com/golang/mock v1.7.0-rc.1
1717
github.com/google/go-cmp v0.7.0
1818
github.com/kylelemons/godebug v1.1.0
1919
github.com/prometheus/client_golang v1.21.1
@@ -27,7 +27,6 @@ require (
2727
golang.org/x/net v0.38.0
2828
google.golang.org/api v0.228.0
2929
google.golang.org/grpc v1.71.0
30-
google.golang.org/protobuf v1.36.6
3130
k8s.io/klog/v2 v2.130.1
3231
)
3332

@@ -105,4 +104,5 @@ require (
105104
google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb // indirect
106105
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
107106
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
107+
google.golang.org/protobuf v1.36.6 // indirect
108108
)

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=

0 commit comments

Comments
 (0)