- kiosk.ReadIdentity: ID()/Requires() as literals or constants across packages and modules, read with go/parser, never run - plugin minimums from go.mod requires; v0.0.0 is an error, a pseudo-version warns - kiosk.Validate, kiosk.CheckT (no testing import) - plugin:add reads IDs through kiosk.ReadIdentity, so const-ID plugins register
15 lines
351 B
Go
15 lines
351 B
Go
package kiosk_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.golem15.com/golem15/summercms/modules/kiosk"
|
|
)
|
|
|
|
// TestPluginManifest is the test a plugin repository adds next to its
|
|
// plugin.go, with "." as the directory. Here it guards the committed
|
|
// manifest of the literal fixture.
|
|
func TestPluginManifest(t *testing.T) {
|
|
kiosk.CheckT(t, "testdata/literal")
|
|
}
|