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

Function newTestDaemon

fbclock/daemon/daemon_test.go:44–53  ·  view source on GitHub ↗
(cfg *Config, stats stats.Server)

Source from the content-addressed store, hash-verified

42}
43
44func newTestDaemon(cfg *Config, stats stats.Server) *Daemon {
45 s := &Daemon{
46 stats: stats,
47 cfg: cfg,
48 state: newDaemonState(cfg.RingSize),
49 l: &testLogger{samples: []*LogSample{}},
50 DataFetcher: &SockFetcher{},
51 }
52 return s
53}
54
55func TestDaemonStateLinearizabilityRing(t *testing.T) {
56 s := newDaemonState(3)

Callers 6

TestDaemonDoWorkFunction · 0.85
TestNoPHCFunction · 0.85

Calls 1

newDaemonStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…