MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestLevelEmoji

Function TestLevelEmoji

backend/plugin/webhook/googlechat/googlechat_test.go:140–146  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

138}
139
140func TestLevelEmoji(t *testing.T) {
141 a := require.New(t)
142 a.Equal("", levelEmoji(webhook.WebhookInfo))
143 a.Equal("✅ ", levelEmoji(webhook.WebhookSuccess))
144 a.Equal("⚠️ ", levelEmoji(webhook.WebhookWarn))
145 a.Equal("❗ ", levelEmoji(webhook.WebhookError))
146}
147
148func TestPostMessage(t *testing.T) {
149 a := require.New(t)

Callers

nothing calls this directly

Calls 2

levelEmojiFunction · 0.70
EqualMethod · 0.65

Tested by

no test coverage detected