forked from andersfylling/disgord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemoji_test.go
35 lines (30 loc) · 2.91 KB
/
emoji_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package disgord
import (
"testing"
)
func TestEmoji_InterfaceImplementations(t *testing.T) {
var c interface{} = &Emoji{}
t.Run("DeepCopier", func(t *testing.T) {
if _, ok := c.(DeepCopier); !ok {
t.Error("Emoji does not implement DeepCopier")
}
})
t.Run("Copier", func(t *testing.T) {
if _, ok := c.(Copier); !ok {
t.Error("Emoji does not implement Copier")
}
})
//
// t.Run("DiscordSaver", func(t *testing.T) {
// if _, ok := c.(discordSaver); !ok {
// t.Error("Emoji does not implement DiscordSaver")
// }
// })
//
// t.Run("discordDeleter", func(t *testing.T) {
// if _, ok := c.(discordDeleter); !ok {
// t.Error("Emoji does not implement discordDeleter")
// }
// })
}
const randomBase64Emoji = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAGPklEQVR4nOyd6VOXax2H+ekv94XEoQQGMBFTUYc03AHFRjQzUwgHDQc1BcclFEGTcsFJySVNcUkgwQUUaFxzQXNpRKTABRnAcEsTQj2gwox6XM4/cJ23ft98rpfXM/PMj7m4Z57lvu/HGfS9Shfit2OC0Seu8EXvPvU++vqwXugdVdHoi97no+/U5hd8nrST6Lc0jUT/6+lH0Xd+sAJ97cNT6A/9qgP/nvVj0P9mYjv0rdCKL4YCGKMAxiiAMQpgjAIYowDGOIL9R+GBrCOf0R8OHIg+JeoJ+nKXtej7rMlF75oQg35n7FT0m0oHoB897hb6VjU/QV+X+gz9mrII9JfjHOhHZPigf7fkKf8etOKLoQDGKIAxCmCMAhijAMYogDGO0kJ+jl8QFoS+5u1/0Lcd9Br9/Mjj6CPdx6FvSSlAP3PEbvSbG5LRD4t4g/5pl7Po//yd2+hvj/iEvrT65+jLAt6h356agl4jwBgFMEYB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