MCPcopy Index your code
hub / github.com/google/seesaw / newTestBackend

Function newTestBackend

engine/vserver_test.go:52–64  ·  view source on GitHub ↗
(num int)

Source from the content-addressed store, hash-verified

50)
51
52func newTestBackend(num int) *seesaw.Backend {
53 last := strconv.Itoa(num + 9)
54 return &seesaw.Backend{
55 Host: seesaw.Host{
56 Hostname: fmt.Sprintf("dns1-%d.example.com", num),
57 IPv4Addr: net.ParseIP("1.1.1." + last),
58 IPv6Addr: net.ParseIP("2012::" + last),
59 },
60 Enabled: true,
61 InService: true,
62 Weight: int32(num),
63 }
64}
65
66var (
67 backend1 = newTestBackend(1)

Callers 1

vserver_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected