MCPcopy Create free account
hub / github.com/easyp-tech/server / testMuxWithConfig

Function testMuxWithConfig

internal/connect/api_test.go:135–137  ·  view source on GitHub ↗

testMuxWithConfig is like testMuxWithLogger but enables commit-resolution enhancements via NewWithConfig, so probe/prewarm behavior can be exercised.

(p provider, log *slog.Logger, cfg CommitResolution)

Source from the content-addressed store, hash-verified

133// testMuxWithConfig is like testMuxWithLogger but enables commit-resolution
134// enhancements via NewWithConfig, so probe/prewarm behavior can be exercised.
135func testMuxWithConfig(p provider, log *slog.Logger, cfg CommitResolution) *http.ServeMux {
136 return NewWithConfig(log, p, "buf.example.com", cfg)
137}
138
139// buildGetCommitsRequest builds a protobuf-encoded GetCommits request
140// with one resource ref for the given owner/module.

Calls 1

NewWithConfigFunction · 0.85

Tested by

no test coverage detected