MCPcopy
hub / github.com/nats-io/nats.go / TestRate

Function TestRate

bench/benchlib_test.go:61–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestRate(t *testing.T) {
62 s := millionMessagesSecondSample(60)
63 if s.Rate() != Million {
64 t.Fatal("Expected rate at 1 million msgs")
65 }
66}
67
68func TestThoughput(t *testing.T) {
69 s := millionMessagesSecondSample(60)

Callers

nothing calls this directly

Calls 2

RateMethod · 0.80

Tested by

no test coverage detected