MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / withCustomCaches

Function withCustomCaches

backend/pkg/httpserver/test_utils_test.go:137–141  ·  view source on GitHub ↗
(c *operationResponseCaches)

Source from the content-addressed store, hash-verified

135
136func withCustomVCSPermissionChecker(c VCSPermissionChecker) TestServerOption {
137 return func(srv *Server) {
138 srv.vcsPermissionChecker = c
139 }
140}
141
142func withCustomStorer(s WPTMetricsStorer) TestServerOption {
143 return func(srv *Server) {
144 srv.wptMetricsStorer = s

Calls

no outgoing calls

Tested by

no test coverage detected