MCPcopy Create free account
hub / github.com/facebook/time / NewSPTPHTTPTester

Function NewSPTPHTTPTester

ptp/linearizability/linearizability_sptp_http.go:98–109  ·  view source on GitHub ↗

NewSPTPHTTPTester initializes a Tester

(server string, sptpurl string, linearizabilityTestMaxGMOffset time.Duration)

Source from the content-addressed store, hash-verified

96
97// NewSPTPHTTPTester initializes a Tester
98func NewSPTPHTTPTester(server string, sptpurl string, linearizabilityTestMaxGMOffset time.Duration) (*SPTPHTTPTester, error) {
99 cfg := &SPTPHTTPTestConfig{
100 Server: server,
101 sptpurl: sptpurl,
102 LinearizabilityTestMaxGMOffset: linearizabilityTestMaxGMOffset,
103 }
104
105 t := &SPTPHTTPTester{
106 cfg: cfg,
107 }
108 return t, nil
109}
110
111// Close the connection
112func (lt *SPTPHTTPTester) Close() error {

Callers 2

TestSPTPRunTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSPTPRunTestFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…