MCPcopy Create free account
hub / github.com/coder/coder / fakeLatency

Function fakeLatency

site/src/contexts/ProxyContext.test.tsx:39–45  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

37
38// fakeLatency is a helper function to make a Latency report from just a number.
39const fakeLatency = (ms: number): ProxyLatency.ProxyLatencyReport => {
40 return {
41 latencyMS: ms,
42 accurate: true,
43 at: new Date(),
44 };
45};
46
47describe("ProxyContextGetURLs", () => {
48 it.each([

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected