mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
21 lines
352 B
Go
21 lines
352 B
Go
package serverevents
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGet(t *testing.T) {
|
|
s := Get()
|
|
assert.NotEqual(t, nil, s)
|
|
}
|
|
|
|
// This is just for code coverage more than anything
|
|
func TestEverything(t *testing.T) {
|
|
Get()
|
|
SendMessage("test", "test", map[string]string{"user_id": "10"})
|
|
SendChange("hosts")
|
|
Shutdown()
|
|
}
|