MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / wmSendMessage

Function wmSendMessage

watch_manager_test.go:50–54  ·  view source on GitHub ↗

wmSendMessage sends a message and asserts no error

(t *testing.T, wm *watchManager, bucket, key string, value []byte)

Source from the content-addressed store, hash-verified

48
49// wmSendMessage sends a message and asserts no error
50func wmSendMessage(t *testing.T, wm *watchManager, bucket, key string, value []byte) {
51 message := NewMessage(bucket, key, value, DataFlag(0), uint64(time.Now().Unix()), MessageOptions{Priority: MessagePriorityMedium})
52 err := wm.sendMessage(message)
53 assert.NoError(t, err)
54}
55
56// wmSendMessages sends multiple messages to the same bucket/key
57func wmSendMessages(t *testing.T, wm *watchManager, bucket, key string, count int) {

Calls 2

NewMessageFunction · 0.85
sendMessageMethod · 0.80

Tested by

no test coverage detected