Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CPChain/chain
/ TestQueueGetTimeout
Function
TestQueueGetTimeout
protocols/cpc/syncer/queue_test.go:46–52 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
44
}
45
46
func
TestQueueGetTimeout(t *testing.T) {
47
q := newQueue(100)
48
_, err := q.get()
49
if
err != ErrTimeout {
50
t.Error(
"err must be ErrTimeout"
)
51
}
52
}
Callers
nothing calls this directly
Calls
3
newQueue
Function · 0.85
Error
Method · 0.65
get
Method · 0.45
Tested by
no test coverage detected