MCPcopy
hub / github.com/SurgeDM/Surge / WithFileSize

Function WithFileSize

internal/testutil/mock_server.go:61–65  ·  view source on GitHub ↗

WithFileSize sets the file size to serve.

(size int64)

Source from the content-addressed store, hash-verified

59
60// WithFileSize sets the file size to serve.
61func WithFileSize(size int64) MockServerOption {
62 return func(m *MockServer) {
63 m.FileSize = size
64 }
65}
66
67// WithRangeSupport enables or disables Range request support.
68func WithRangeSupport(enabled bool) MockServerOption {

Calls

no outgoing calls