MCPcopy
hub / github.com/CodisLabs/codis / TestModel

Function TestModel

pkg/proxy/proxy_test.go:35–45  ·  view source on GitHub ↗
(x *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestModel(x *testing.T) {
36 s, addr := openProxy()
37 defer s.Close()
38
39 var c = NewApiClient(addr)
40
41 p, err := c.Model()
42 assert.MustNoError(err)
43 assert.Must(p.Token == s.Model().Token)
44 assert.Must(p.ProductName == config.ProductName)
45}
46
47func TestStats(x *testing.T) {
48 s, addr := openProxy()

Callers

nothing calls this directly

Calls 4

openProxyFunction · 0.70
NewApiClientFunction · 0.70
CloseMethod · 0.65
ModelMethod · 0.45

Tested by

no test coverage detected