Skip to content

Commit 9be970e

Browse files
committed
Add plugin implements test
1 parent 2c32c61 commit 9be970e

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ module github.com/gotify/plugin-template
33
require (
44
github.com/gin-gonic/gin v1.3.0
55
github.com/gotify/plugin-api v1.0.0
6+
github.com/stretchr/testify v1.3.0
67
)

plugin_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"testing"
5+
6+
"github.com/gotify/plugin-api"
7+
"github.com/stretchr/testify/assert"
8+
)
9+
10+
func TestAPICompatibility(t *testing.T) {
11+
assert.Implements(t, (*plugin.Plugin)(nil), new(MyPlugin))
12+
// Add other interfaces you intend to implement here
13+
}

0 commit comments

Comments
 (0)