diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-22 23:26:56 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-22 23:59:46 +0300 |
commit | fafc7f55be8c206d52de72522645091dd7a73b03 (patch) | |
tree | 0e16ef638073a49b8e318caf0a1ec0695227bde7 /matrix/sync_test.go | |
parent | ad540e268d207eb4b18447018e1a5d67fac9d45e (diff) |
Remove impossible check and improve things for testing
Diffstat (limited to 'matrix/sync_test.go')
-rw-r--r-- | matrix/sync_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/matrix/sync_test.go b/matrix/sync_test.go index c5acda8..886e168 100644 --- a/matrix/sync_test.go +++ b/matrix/sync_test.go @@ -15,3 +15,20 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. package matrix_test + +import ( + "maunium.net/go/gomuks/matrix/rooms" +) + +type mockSyncerSession struct { + rooms map[string]*rooms.Room + userID string +} + +func (mss *mockSyncerSession) GetRoom(id string) *rooms.Room { + return mss.rooms[id] +} + +func (mss *mockSyncerSession) GetUserID() string { + return mss.userID +} |