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

Function TestChannels

calnex/api/api_test.go:67–76  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func TestChannels(t *testing.T) {
68 cs := Channels{}
69 require.Equal(t, "channel", cs.Type())
70
71 err := cs.Set("1")
72 require.NoError(t, err)
73 err = cs.Set("A")
74 require.NoError(t, err)
75 require.Equal(t, "1, A", cs.String())
76}
77
78func TestProbe(t *testing.T) {
79 legitProbeNamesToProbe := map[string]Probe{

Callers

nothing calls this directly

Calls 3

TypeMethod · 0.95
SetMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…