Refactored test utils in VK module

This commit is contained in:
Artyom Belousov 2021-02-06 22:36:51 +03:00
parent d5f9a495b7
commit 121bb9fc9c
6 changed files with 124 additions and 112 deletions

View file

@ -0,0 +1,17 @@
package vk
type testSender struct {
sent []testMessage
}
type testMessage struct {
userId int64
message string
}
func (s *testSender) Send(userId int64, message string) {
s.sent = append(s.sent, testMessage{
userId: userId,
message: message,
})
}