Debian Codegraph @

messages_test.go

raw symbols SCIP
1 package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/
2
3 import (
4 "encoding/jsonscip-go gomod github.com/golang/go/src go1.16 `encoding/json`/"
5 "fmtscip-go gomod github.com/golang/go/src go1.16 fmt/"
6 "testingscip-go gomod github.com/golang/go/src go1.16 testing/"
7
8 "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/"
9 )
10
11 var simpleMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/simpleMessage. = `{
12 "type": "message",
13 "channel": "C2147483705",
14 "user": "U2147483697",
15 "text": "Hello world",
16 "ts": "1355517523.000005"
17 }`
18
19 func unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(j string) (*Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#, error) {
20 message := &Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#{}
21 if err := jsonscip-go gomod github.com/golang/go/src go1.16 `encoding/json`/.Unmarshalscip-go gomod github.com/golang/go/src go1.16 `encoding/json`/Unmarshal().([]byte(j), &message); err != nil {
22 return nil, err
23 }
24 return message, nil
25 }
26
27 func TestSimpleMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestSimpleMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
28 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(simpleMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/simpleMessage.)
29 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
30 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
31 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
32 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "C2147483705", message.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Channel.)
33 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
34 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "Hello world", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
35 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1355517523.000005", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
36 }
37
38 var starredMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/starredMessage. = `{
39 "text": "is testing",
40 "type": "message",
41 "subtype": "me_message",
42 "user": "U2147483697",
43 "ts": "1433314126.000003",
44 "is_starred": true
45 }`
46
47 func TestStarredMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestStarredMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
48 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(starredMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/starredMessage.)
49 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
50 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
51 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "is testing", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
52 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
53 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeMeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeMeMessage., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
54 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
55 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433314126.000003", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
56 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, true, message.IsStarredscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#IsStarred.)
57 }
58
59 var editedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/editedMessage. = `{
60 "type": "message",
61 "user": "U2147483697",
62 "text": "hello edited",
63 "edited": {
64 "user": "U2147483697",
65 "ts": "1433314416.000000"
66 },
67 "ts": "1433314408.000004"
68 }`
69
70 func TestEditedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestEditedMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
71 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(editedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/editedMessage.)
72 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
73 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
74 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
75 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
76 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "hello edited", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
77 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited.)
78 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited..Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Edited#User.)
79 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433314416.000000", message.Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited..Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Edited#Timestamp.)
80 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433314408.000004", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
81 }
82
83 var uploadedFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/uploadedFile. = `{
84 "type": "message",
85 "subtype": "file_share",
86 "text": "<@U2147483697|tester> uploaded a file: <https:\/\/test.slack.com\/files\/tester\/abc\/test.txt|test.txt> and commented: test comment here",
87 "files": [{
88 "id": "abc",
89 "created": 1433314757,
90 "timestamp": 1433314757,
91 "name": "test.txt",
92 "title": "test.txt",
93 "mimetype": "text\/plain",
94 "filetype": "text",
95 "pretty_type": "Plain Text",
96 "user": "U2147483697",
97 "editable": true,
98 "size": 5,
99 "mode": "snippet",
100 "is_external": false,
101 "external_type": "",
102 "is_public": true,
103 "public_url_shared": false,
104 "url": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/test.txt",
105 "url_download": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/download\/test.txt",
106 "url_private": "https:\/\/files.slack.com\/files-pri\/abc-def\/test.txt",
107 "url_private_download": "https:\/\/files.slack.com\/files-pri\/abc-def\/download\/test.txt",
108 "permalink": "https:\/\/test.slack.com\/files\/tester\/abc\/test.txt",
109 "permalink_public": "https:\/\/slack-files.com\/abc-def-ghi",
110 "edit_link": "https:\/\/test.slack.com\/files\/tester\/abc\/test.txt\/edit",
111 "preview": "test\n",
112 "preview_highlight": "<div class=\"sssh-code\"><div class=\"sssh-line\"><pre>test<\/pre><\/div>\n<div class=\"sssh-line\"><pre><\/pre><\/div>\n<\/div>",
113 "lines": 2,
114 "lines_more": 0,
115 "channels": [
116 "C2147483705"
117 ],
118 "groups": [],
119 "ims": [],
120 "comments_count": 1,
121 "initial_comment": {
122 "id": "Fc066YLGKH",
123 "created": 1433314757,
124 "timestamp": 1433314757,
125 "user": "U2147483697",
126 "comment": "test comment here"
127 }
128 }],
129 "user": "U2147483697",
130 "upload": true,
131 "ts": "1433314757.000006"
132 }`
133
134 func TestUploadedFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestUploadedFile().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
135 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(uploadedFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/uploadedFile.)
136 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
137 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
138 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
139 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeFileSharescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeFileShare., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
140 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483697|tester> uploaded a file: <https://test.slack.com/files/tester/abc/test.txt|test.txt> and commented: test comment here", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
141 // TODO: Assert File
142 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
143 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/True().(t, message.Uploadscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Upload.)
144 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433314757.000006", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
145 }
146
147 var testPostscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/testPost. = `{
148 "type": "message",
149 "subtype": "file_share",
150 "text": "<@U2147483697|tester> shared a file: <https:\/\/test.slack.com\/files\/tester\/abc\/test_post|test post>",
151 "files": [{
152 "id": "abc",
153 "created": 1433315398,
154 "timestamp": 1433315398,
155 "name": "test_post",
156 "title": "test post",
157 "mimetype": "text\/plain",
158 "filetype": "post",
159 "pretty_type": "Post",
160 "user": "U2147483697",
161 "editable": true,
162 "size": 14,
163 "mode": "post",
164 "is_external": false,
165 "external_type": "",
166 "is_public": true,
167 "public_url_shared": false,
168 "url": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/test_post",
169 "url_download": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/download\/test_post",
170 "url_private": "https:\/\/files.slack.com\/files-pri\/abc-def\/test_post",
171 "url_private_download": "https:\/\/files.slack.com\/files-pri\/abc-def\/download\/test_post",
172 "permalink": "https:\/\/test.slack.com\/files\/tester\/abc\/test_post",
173 "permalink_public": "https:\/\/slack-files.com\/abc-def-ghi",
174 "edit_link": "https:\/\/test.slack.com\/files\/tester\/abc\/test_post\/edit",
175 "preview": "test post body",
176 "channels": [
177 "C2147483705"
178 ],
179 "groups": [],
180 "ims": [],
181 "comments_count": 1
182 }],
183 "user": "U2147483697",
184 "upload": false,
185 "ts": "1433315416.000008"
186 }`
187
188 func TestPostscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestPost().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
189 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(testPostscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/testPost.)
190 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
191 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
192 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
193 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeFileSharescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeFileShare., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
194 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483697|tester> shared a file: <https://test.slack.com/files/tester/abc/test_post|test post>", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
195 // TODO: Assert File
196 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
197 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/False().(t, message.Uploadscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Upload.)
198 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433315416.000008", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
199 }
200
201 var testCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/testComment. = `{
202 "type": "message",
203 "subtype": "file_comment",
204 "text": "<@U2147483697|tester> commented on <@U2147483697|tester>'s file <https:\/\/test.slack.com\/files\/tester\/abc\/test_post|test post>: another comment",
205 "files": [{
206 "id": "abc",
207 "created": 1433315398,
208 "timestamp": 1433315398,
209 "name": "test_post",
210 "title": "test post",
211 "mimetype": "text\/plain",
212 "filetype": "post",
213 "pretty_type": "Post",
214 "user": "U2147483697",
215 "editable": true,
216 "size": 14,
217 "mode": "post",
218 "is_external": false,
219 "external_type": "",
220 "is_public": true,
221 "public_url_shared": false,
222 "url": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/test_post",
223 "url_download": "https:\/\/slack-files.com\/files-pub\/abc-def-ghi\/download\/test_post",
224 "url_private": "https:\/\/files.slack.com\/files-pri\/abc-def\/test_post",
225 "url_private_download": "https:\/\/files.slack.com\/files-pri\/abc-def\/download\/test_post",
226 "permalink": "https:\/\/test.slack.com\/files\/tester\/abc\/test_post",
227 "permalink_public": "https:\/\/slack-files.com\/abc-def-ghi",
228 "edit_link": "https:\/\/test.slack.com\/files\/tester\/abc\/test_post\/edit",
229 "preview": "test post body",
230 "channels": [
231 "C2147483705"
232 ],
233 "groups": [],
234 "ims": [],
235 "comments_count": 2
236 }],
237 "comment": {
238 "id": "xyz",
239 "created": 1433316360,
240 "timestamp": 1433316360,
241 "user": "U2147483697",
242 "comment": "another comment"
243 },
244 "ts": "1433316360.000009"
245 }`
246
247 func TestCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestComment().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
248 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(testCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/testComment.)
249 fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.16 fmt/Println().(err)
250 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
251 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
252 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
253 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeFileCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeFileComment., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
254 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483697|tester> commented on <@U2147483697|tester>'s file <https://test.slack.com/files/tester/abc/test_post|test post>: another comment", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
255 // TODO: Assert File
256 // TODO: Assert Comment
257 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1433316360.000009", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
258 }
259
260 var botMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/botMessage. = `{
261 "type": "message",
262 "subtype": "bot_message",
263 "text": "Pushing is the answer",
264 "suppress_notification": false,
265 "bot_id": "BB12033",
266 "username": "github",
267 "icons": {},
268 "team": "T01A9CUMPQA",
269 "bot_profile": {
270 "id": "BB12033",
271 "deleted": false,
272 "name": "github",
273 "updated": 1599574335,
274 "app_id": "A6DB2SWUW",
275 "icons": {
276 "image_36": "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_36.png",
277 "image_48": "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_48.png",
278 "image_72": "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_72.png"
279 },
280 "team_id": "T01A9CUMPQA"
281 },
282 "blocks": [],
283 "channel": "C01AZ844Z32",
284 "event_ts": "1358877455.000010",
285 "ts": "1358877455.000010"
286 }`
287
288 func TestBotMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestBotMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
289 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(botMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/botMessage.)
290 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
291 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
292 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
293 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeBotMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeBotMessage., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
294 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
295 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "Pushing is the answer", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
296 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "BB12033", message.BotIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotID.)
297 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "github", message.Usernamescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Username.)
298 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Icons.)
299 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Emptyscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Empty().(t, message.Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Icons..IconURLscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Icon#IconURL.)
300 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Emptyscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Empty().(t, message.Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Icons..IconEmojiscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Icon#IconEmoji.)
301 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "github", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Name.)
302 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "BB12033", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..IDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#ID.)
303 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, false, message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Deletedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Deleted.)
304 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, int64(1599574335), message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Updatedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Updated.)
305 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "A6DB2SWUW", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..AppIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#AppID.)
306 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_36.png", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Icons..Image36scip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Icons#Image36.)
307 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_48.png", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Icons..Image48scip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Icons#Image48.)
308 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-10-24/261138718469_ada58732a18da119678d_72.png", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..Iconsscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#Icons..Image72scip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Icons#Image72.)
309 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "T01A9CUMPQA", message.BotProfilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#BotProfile..TeamIDscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/BotProfile#TeamID.)
310 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "C01AZ844Z32", message.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Channel.)
311 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.EventTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#EventTimestamp.)
312 }
313
314 var meMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/meMessage. = `{
315 "type": "message",
316 "subtype": "me_message",
317 "channel": "C2147483705",
318 "user": "U2147483697",
319 "text": "is doing that thing",
320 "ts": "1355517523.000005"
321 }`
322
323 func TestMeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestMeMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
324 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(meMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/meMessage.)
325 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
326 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
327 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
328 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeMeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeMeMessage., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
329 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "C2147483705", message.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Channel.)
330 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
331 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "is doing that thing", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
332 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1355517523.000005", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
333 }
334
335 var messageChangedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/messageChangedMessage. = `{
336 "type": "message",
337 "subtype": "message_changed",
338 "hidden": true,
339 "channel": "C2147483705",
340 "ts": "1358878755.000001",
341 "message": {
342 "type": "message",
343 "user": "U2147483697",
344 "text": "Hello, world!",
345 "ts": "1355517523.000005",
346 "edited": {
347 "user": "U2147483697",
348 "ts": "1358878755.000001"
349 }
350 }
351 }`
352
353 func TestMessageChangedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestMessageChangedMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
354 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(messageChangedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/messageChangedMessage.)
355 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
356 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
357 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
358 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeMessageChangedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeMessageChanged., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
359 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/True().(t, message.Hiddenscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Hidden.)
360 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "C2147483705", message.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Channel.)
361 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage.)
362 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
363 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
364 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "Hello, world!", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
365 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1355517523.000005", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
366 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited.)
367 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited..Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Edited#User.)
368 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358878755.000001", message.SubMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#SubMessage..Editedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Edited..Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Edited#Timestamp.)
369 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358878755.000001", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
370 }
371
372 var messageDeletedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/messageDeletedMessage. = `{
373 "type": "message",
374 "subtype": "message_deleted",
375 "hidden": true,
376 "channel": "C2147483705",
377 "ts": "1358878755.000001",
378 "deleted_ts": "1358878749.000002"
379 }`
380
381 func TestMessageDeletedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestMessageDeletedMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
382 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(messageDeletedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/messageDeletedMessage.)
383 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
384 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
385 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
386 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeMessageDeletedscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeMessageDeleted., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
387 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/True().(t, message.Hiddenscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Hidden.)
388 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "C2147483705", message.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Channel.)
389 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358878755.000001", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
390 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358878749.000002", message.DeletedTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#DeletedTimestamp.)
391 }
392
393 var channelJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelJoinMessage. = `{
394 "type": "message",
395 "subtype": "channel_join",
396 "ts": "1358877458.000011",
397 "user": "U2147483828",
398 "text": "<@U2147483828|cal> has joined the channel"
399 }`
400
401 func TestChannelJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelJoinMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
402 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelJoinMessage.)
403 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
404 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
405 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
406 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelJoinscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelJoin., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
407 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877458.000011", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
408 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
409 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has joined the channel", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
410 }
411
412 var channelJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelJoinInvitedMessage. = `{
413 "type": "message",
414 "subtype": "channel_join",
415 "ts": "1358877458.000011",
416 "user": "U2147483828",
417 "text": "<@U2147483828|cal> has joined the channel",
418 "inviter": "U2147483829"
419 }`
420
421 func TestChannelJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelJoinInvitedMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
422 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelJoinInvitedMessage.)
423 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
424 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
425 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
426 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelJoinscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelJoin., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
427 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877458.000011", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
428 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
429 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has joined the channel", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
430 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483829", message.Inviterscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Inviter.)
431 }
432
433 var channelLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelLeaveMessage. = `{
434 "type": "message",
435 "subtype": "channel_leave",
436 "ts": "1358877455.000010",
437 "user": "U2147483828",
438 "text": "<@U2147483828|cal> has left the channel"
439 }`
440
441 func TestChannelLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelLeaveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
442 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelLeaveMessage.)
443 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
444 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
445 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
446 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelLeavescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelLeave., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
447 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
448 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
449 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has left the channel", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
450 }
451
452 var channelTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelTopicMessage. = `{
453 "type": "message",
454 "subtype": "channel_topic",
455 "ts": "1358877455.000010",
456 "user": "U2147483828",
457 "topic": "hello world",
458 "text": "<@U2147483828|cal> set the channel topic: hello world"
459 }`
460
461 func TestChannelTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelTopicMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
462 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelTopicMessage.)
463 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
464 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
465 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
466 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelTopicscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelTopic., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
467 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
468 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
469 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "hello world", message.Topicscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Topic.)
470 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> set the channel topic: hello world", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
471 }
472
473 var channelPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelPurposeMessage. = `{
474 "type": "message",
475 "subtype": "channel_purpose",
476 "ts": "1358877455.000010",
477 "user": "U2147483828",
478 "purpose": "whatever",
479 "text": "<@U2147483828|cal> set the channel purpose: whatever"
480 }`
481
482 func TestChannelPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelPurposeMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
483 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelPurposeMessage.)
484 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
485 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
486 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
487 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelPurposescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelPurpose., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
488 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
489 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
490 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "whatever", message.Purposescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Purpose.)
491 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> set the channel purpose: whatever", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
492 }
493
494 var channelNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelNameMessage. = `{
495 "type": "message",
496 "subtype": "channel_name",
497 "ts": "1358877455.000010",
498 "user": "U2147483828",
499 "old_name": "random",
500 "name": "watercooler",
501 "text": "<@U2147483828|cal> has renamed the channel from \"random\" to \"watercooler\""
502 }`
503
504 func TestChannelNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelNameMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
505 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelNameMessage.)
506 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
507 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
508 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
509 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelNamescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelName., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
510 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
511 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
512 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "random", message.OldNamescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#OldName.)
513 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "watercooler", message.Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Name.)
514 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has renamed the channel from \"random\" to \"watercooler\"", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
515 }
516
517 var channelArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelArchiveMessage. = `{
518 "type": "message",
519 "subtype": "channel_archive",
520 "ts": "1361482916.000003",
521 "text": "<U1234|@cal> archived the channel",
522 "user": "U1234",
523 "members": ["U1234", "U5678"]
524 }`
525
526 func TestChannelArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelArchiveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
527 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelArchiveMessage.)
528 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
529 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
530 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
531 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelArchivescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelArchive., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
532 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1361482916.000003", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
533 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<U1234|@cal> archived the channel", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
534 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
535 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.Membersscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Members.)
536 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, 2, len(message.Membersscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Members.))
537 }
538
539 var channelUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelUnarchiveMessage. = `{
540 "type": "message",
541 "subtype": "channel_unarchive",
542 "ts": "1361482916.000003",
543 "text": "<U1234|@cal> un-archived the channel",
544 "user": "U1234"
545 }`
546
547 func TestChannelUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelUnarchiveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
548 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelUnarchiveMessage.)
549 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
550 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
551 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
552 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeChannelUnarchivescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeChannelUnarchive., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
553 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1361482916.000003", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
554 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<U1234|@cal> un-archived the channel", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
555 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
556 }
557
558 var channelRepliesParentMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelRepliesParentMessage. = `{
559 "type": "message",
560 "user": "U1234",
561 "text": "test",
562 "thread_ts": "1493305433.915644",
563 "reply_count": 2,
564 "replies": [
565 {
566 "user": "U5678",
567 "ts": "1493305444.920992"
568 },
569 {
570 "user": "U9012",
571 "ts": "1493305894.133936"
572 }
573 ],
574 "subscribed": true,
575 "last_read": "1493305894.133936",
576 "unread_count": 0,
577 "ts": "1493305433.915644"
578 }`
579
580 func TestChannelRepliesParentMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelRepliesParentMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
581 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelRepliesParentMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelRepliesParentMessage.)
582 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
583 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
584 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
585 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
586 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "test", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
587 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305433.915644", message.ThreadTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#ThreadTimestamp.)
588 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, 2, message.ReplyCountscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#ReplyCount.)
589 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U5678", message.Repliesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Replies.[0].Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Reply#User.)
590 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305444.920992", message.Repliesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Replies.[0].Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Reply#Timestamp.)
591 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U9012", message.Repliesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Replies.[1].Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Reply#User.)
592 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305894.133936", message.Repliesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Replies.[1].Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Reply#Timestamp.)
593 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305433.915644", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
594 }
595
596 var channelRepliesChildMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelRepliesChildMessage. = `{
597 "type": "message",
598 "user": "U5678",
599 "text": "foo",
600 "thread_ts": "1493305433.915644",
601 "parent_user_id": "U1234",
602 "ts": "1493305444.920992"
603 }`
604
605 func TestChannelRepliesChildMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestChannelRepliesChildMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
606 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(channelRepliesChildMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/channelRepliesChildMessage.)
607 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
608 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
609 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
610 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U5678", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
611 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "foo", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
612 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305433.915644", message.ThreadTimestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#ThreadTimestamp.)
613 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.ParentUserIdscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#ParentUserId.)
614 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1493305444.920992", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
615 }
616
617 var groupJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupJoinMessage. = `{
618 "type": "message",
619 "subtype": "group_join",
620 "ts": "1358877458.000011",
621 "user": "U2147483828",
622 "text": "<@U2147483828|cal> has joined the group"
623 }`
624
625 func TestGroupJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupJoinMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
626 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupJoinMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupJoinMessage.)
627 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
628 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
629 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
630 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupJoinscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupJoin., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
631 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877458.000011", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
632 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
633 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has joined the group", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
634 }
635
636 var groupJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupJoinInvitedMessage. = `{
637 "type": "message",
638 "subtype": "group_join",
639 "ts": "1358877458.000011",
640 "user": "U2147483828",
641 "text": "<@U2147483828|cal> has joined the group",
642 "inviter": "U2147483829"
643 }`
644
645 func TestGroupJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupJoinInvitedMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
646 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupJoinInvitedMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupJoinInvitedMessage.)
647 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
648 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
649 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
650 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupJoinscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupJoin., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
651 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877458.000011", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
652 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
653 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has joined the group", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
654 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483829", message.Inviterscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Inviter.)
655 }
656
657 var groupLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupLeaveMessage. = `{
658 "type": "message",
659 "subtype": "group_leave",
660 "ts": "1358877455.000010",
661 "user": "U2147483828",
662 "text": "<@U2147483828|cal> has left the group"
663 }`
664
665 func TestGroupLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupLeaveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
666 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupLeaveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupLeaveMessage.)
667 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
668 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
669 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
670 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupLeavescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupLeave., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
671 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
672 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
673 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has left the group", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
674 }
675
676 var groupTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupTopicMessage. = `{
677 "type": "message",
678 "subtype": "group_topic",
679 "ts": "1358877455.000010",
680 "user": "U2147483828",
681 "topic": "hello world",
682 "text": "<@U2147483828|cal> set the group topic: hello world"
683 }`
684
685 func TestGroupTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupTopicMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
686 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupTopicMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupTopicMessage.)
687 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
688 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
689 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
690 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupTopicscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupTopic., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
691 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
692 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
693 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "hello world", message.Topicscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Topic.)
694 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> set the group topic: hello world", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
695 }
696
697 var groupPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupPurposeMessage. = `{
698 "type": "message",
699 "subtype": "group_purpose",
700 "ts": "1358877455.000010",
701 "user": "U2147483828",
702 "purpose": "whatever",
703 "text": "<@U2147483828|cal> set the group purpose: whatever"
704 }`
705
706 func TestGroupPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupPurposeMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
707 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupPurposeMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupPurposeMessage.)
708 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
709 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
710 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
711 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupPurposescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupPurpose., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
712 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
713 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
714 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "whatever", message.Purposescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Purpose.)
715 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> set the group purpose: whatever", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
716 }
717
718 var groupNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupNameMessage. = `{
719 "type": "message",
720 "subtype": "group_name",
721 "ts": "1358877455.000010",
722 "user": "U2147483828",
723 "old_name": "random",
724 "name": "watercooler",
725 "text": "<@U2147483828|cal> has renamed the group from \"random\" to \"watercooler\""
726 }`
727
728 func TestGroupNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupNameMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
729 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupNameMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupNameMessage.)
730 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
731 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
732 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
733 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupNamescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupName., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
734 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
735 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483828", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
736 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "random", message.OldNamescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#OldName.)
737 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "watercooler", message.Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Name.)
738 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@U2147483828|cal> has renamed the group from \"random\" to \"watercooler\"", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
739 }
740
741 var groupArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupArchiveMessage. = `{
742 "type": "message",
743 "subtype": "group_archive",
744 "ts": "1361482916.000003",
745 "text": "<U1234|@cal> archived the group",
746 "user": "U1234",
747 "members": ["U1234", "U5678"]
748 }`
749
750 func TestGroupArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupArchiveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
751 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupArchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupArchiveMessage.)
752 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
753 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
754 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
755 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupArchivescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupArchive., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
756 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1361482916.000003", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
757 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<U1234|@cal> archived the group", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
758 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
759 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.Membersscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Members.)
760 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, 2, len(message.Membersscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Members.))
761 }
762
763 var groupUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupUnarchiveMessage. = `{
764 "type": "message",
765 "subtype": "group_unarchive",
766 "ts": "1361482916.000003",
767 "text": "<U1234|@cal> un-archived the group",
768 "user": "U1234"
769 }`
770
771 func TestGroupUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestGroupUnarchiveMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
772 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(groupUnarchiveMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/groupUnarchiveMessage.)
773 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
774 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
775 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
776 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeGroupUnarchivescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeGroupUnarchive., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
777 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1361482916.000003", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
778 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<U1234|@cal> un-archived the group", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
779 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U1234", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
780 }
781
782 var fileShareMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/fileShareMessage. = `{
783 "type": "message",
784 "subtype": "file_share",
785 "ts": "1358877455.000010",
786 "text": "<@cal> uploaded a file: <https:...7.png|7.png>",
787 "files": [{
788 "id" : "F2147483862",
789 "created" : 1356032811,
790 "timestamp" : 1356032811,
791 "name" : "file.htm",
792 "title" : "My HTML file",
793 "mimetype" : "text\/plain",
794 "filetype" : "text",
795 "pretty_type": "Text",
796 "user" : "U2147483697",
797 "mode" : "hosted",
798 "editable" : true,
799 "is_external": false,
800 "external_type": "",
801 "size" : 12345,
802 "url": "https:\/\/slack-files.com\/files-pub\/T024BE7LD-F024BERPE-09acb6\/1.png",
803 "url_download": "https:\/\/slack-files.com\/files-pub\/T024BE7LD-F024BERPE-09acb6\/download\/1.png",
804 "url_private": "https:\/\/slack.com\/files-pri\/T024BE7LD-F024BERPE\/1.png",
805 "url_private_download": "https:\/\/slack.com\/files-pri\/T024BE7LD-F024BERPE\/download\/1.png",
806 "thumb_64": "https:\/\/slack-files.com\/files-tmb\/T024BE7LD-F024BERPE-c66246\/1_64.png",
807 "thumb_80": "https:\/\/slack-files.com\/files-tmb\/T024BE7LD-F024BERPE-c66246\/1_80.png",
808 "thumb_360": "https:\/\/slack-files.com\/files-tmb\/T024BE7LD-F024BERPE-c66246\/1_360.png",
809 "thumb_360_gif": "https:\/\/slack-files.com\/files-tmb\/T024BE7LD-F024BERPE-c66246\/1_360.gif",
810 "thumb_360_w": 100,
811 "thumb_360_h": 100,
812 "permalink" : "https:\/\/tinyspeck.slack.com\/files\/cal\/F024BERPE\/1.png",
813 "edit_link" : "https:\/\/tinyspeck.slack.com\/files\/cal\/F024BERPE\/1.png/edit",
814 "preview" : "&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;meta charset='utf-8'&gt;",
815 "preview_highlight" : "&lt;div class=\"sssh-code\"&gt;&lt;div class=\"sssh-line\"&gt;&lt;pre&gt;&lt;!DOCTYPE html...",
816 "lines" : 123,
817 "lines_more": 118,
818 "is_public": true,
819 "public_url_shared": false,
820 "channels": ["C024BE7LT"],
821 "groups": ["G12345"],
822 "ims": ["D12345"],
823 "initial_comment": {},
824 "num_stars": 7,
825 "is_starred": true
826 }],
827 "user": "U2147483697",
828 "upload": true
829 }`
830
831 func TestFileShareMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestFileShareMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
832 message, err := unmarshalMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/unmarshalMessage().(fileShareMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/fileShareMessage.)
833 fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.16 fmt/Println().(err)
834 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Nil().(t, err)
835 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message)
836 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "message", message.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Type.)
837 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, MsgSubTypeFileSharescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/MsgSubTypeFileShare., message.SubTypescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#SubType.)
838 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "1358877455.000010", message.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Timestamp.)
839 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "<@cal> uploaded a file: <https:...7.png|7.png>", message.Textscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Text.)
840 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, "U2147483697", message.Userscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#User.)
841 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/True().(t, message.Uploadscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Upload.)
842 assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/NotNil().(t, message.Filesscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Msg#Files.[0])
843 }