Commit cc8b634f authored by heyubin's avatar heyubin Committed by 33cn

add by hyb for add test

parent 477c6b5d
......@@ -118,6 +118,15 @@ func TestTicketMap(t *testing.T) {
assert.Equal(t, c.getTicketCount(), int64(4))
c.delTicket("3333")
assert.Equal(t, c.getTicketCount(), int64(3))
c.setTicket(ticketList, nil)
assert.Equal(t, c.getTicketCount(), int64(0))
c.setTicket(nil, privmap)
assert.Equal(t, c.getTicketCount(), int64(0))
c.setTicket(nil, nil)
assert.Equal(t, c.getTicketCount(), int64(0))
}
func TestProcEvent(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment